Practical settings for Sublime 3

Practical settings for Sublime 3



Sublime Text3 is referred to as ST in the text.

ST is a good editor, I have been using it for a while, so I think I can do some sharing to make it easier for everyone to use it. ST already works fine when downloaded directly, but it can do better after you do some configuration.

Setting
font size
"font_size": 17
Programmers get tired in part because of the font size on the monitor. You can think about why old people use a magnifying glass to see things, I don't mean anything else, I just think we can make the font a little bigger to make the day less tired.

Highlight the line in the editor
"highlight_line": true
When you turn your head away from the monitor and look back at the editor, what about the cursor? Then you might find him with a little effort, just like you usually find a mouse. This setting will highlight the line where the cursor is, just a little bit, but you can find it right away.

Auto-save after focus loss
"save_on_focus_lost": true
If ST didn't have this feature, I should have thrown him aside. As the name suggests, when you remove focus from the currently edited file, the file is automatically saved. It is estimated that many people sometimes debug an unsaved file, so this setting can be said to be a necessity.

Show the encoding of the current file
"show_encoding": true
To avoid some low-level errors, this setting is still quite useful. When you open it, the encoding of the current file will be displayed in the lower right corner of the editor.

When saving, remove useless spaces
"
What is removed here is the space at the end of each line of text, which is obviously useless. If you manually delete and check, it is estimated that you will be very annoying. Of course, whether or not to delete it depends on your needs.

Tab translation
"tab_size": 2,
"translate_tabs_to_spaces": true
This setting will convert to two spaces when you press Tab. This setting is quite useful to me. My projects basically follow 2 spaces for indentation. If you indent with 4 spaces, set it to 4. Objectively, it's the icing on the cake.

Word_wrap
"word_wrap": false
Please also set it to off, otherwise your code width will break the sky in many occasions. And I also can't stand the line numbers breaking suddenly.

Width guide lines
"rulers": [80]
This number is the width of the character. When this setting is turned on, a vertical dotted line will appear. But when your code width exceeds this line, it means that you need to reorganize. With the above settings, you will find that your code will be more refined, except of course HTML.

Spell check
"spell_check": false
turn it off, we all use abbreviations and pinyin, and few are right.

Whether or not to scroll the head
"scroll_past_end": true
This setting depends on what you mean. Many times I still want to see the last line in the middle of the screen, so I turned it on.

Vim mode
"ignored_packages":

]
Well, I don't know Vim, ignore that.

Display Tab, Space
"draw_white_space": "all"
If you feel messy, close it.

Bold folder names
"bold_folder_labels": true
To be honest, ST's file tree is not that good. This setting will make the folder names bolder to make it easier for you to identify.

Show full path
"show_full_path": true Shows
the full path of the currently edited file on your window title, which is a display enhancement.

My utility settings

{
"font_size": 14.0,
"ignored_packages":
[
"Vintage"
],
"theme": "Soda Dark 3.sublime-theme",
"update_check": false,
"word_wrap": "auto",
"draw_white_space ": "all",
"highlight_line": true,



"scroll_past_end": true,
"bold_folder_labels": true,
"save_on_focus_lost": true,
}

另外增加2个实用的快捷键设置,
[
{
"keys": ["ctrl+shift+]"],
"command": "reindent"
},
    {
        "keys": ["ctrl+shift+/"],
        "command": "add_current_time"
    }
]

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326658553&siteId=291194637