Common Commands
Install the package control
Https://packagecontrol.io/installation, the above instructions, the installation needs to restart sublime.
After restarting, ctrl+shift+p, enter CTRL + SHIFT + p and enter the package Control:install in the control window to enter the packages you want to install. Brackethighlighter
Displays pairs of parentheses, and so on, on the row number Sublime Code Intel Auto complete awesomeness all autocomplete
Adds autocomplete for words found on all open files. Works well as a supplement to Sublimecodeintel ColorPicker
Use a color picker to change colors markdownediting or Markdownperview
This is a must for writing markdown. Can be installed in the Package manager. After loading, writing markdown (the lower right corner of the syntax is markdown), you can press CTRL+B, directly generate HTML, and display in the browser; Jsformat
JavaScript code formatting; https://github.com/jdc0589/JsFormat
Use: The default key binding is "Ctrl+alt+f" Open the Command palette via "CTRL + SHIFT + P", Jsformat appears as "Format: Javascript "
Note : Must be a. js file, or syntax set to JS or JSON, otherwise command palette does not display "Format:javascript" sidebarenhancement
This is used to enhance the left side sidebar. The sidebar on the left can be opened in Show Side bar, view, Side bar, and can be used with project, ADD Folder to project ... Add common folders to the sidebar. After this plug-in, the sidebar right-click menu will be more features, very useful custom shortcut keys at the end of the line to add;
Best solution in recording a macro on Sublime Text and then assigning it to a keyboard shortcut . Follow these steps:
Create a line such as alert (' Hello ') and leave the cursor to ' o '.
Then go-to-Tools > Record a Macro to start recording.
Press ' End ' to go and the End of line.
press ;
Stop recording the macro by going to Tools > STOP Recording macro
You can now test your macro by Tools > Playback macro (Optional)
Save your macro by going to Tools > Save macro (EX:ENDOFLINE.SUBLIME-MACRO)
Create a shortcut by adding this between the square brackets in your in your Preferences > Key bindings-user file: (Ct Rl+shift+p, input KBU, carriage return)
[
{"Keys": ["CTRL +;"], "command": "Run_macro_file", "args": {"file": "Packages/user/endofline.sublime-macro"}}
]
Now, every time to hit Ctrl +;, it'll magically place the semicolon at the end of current line and move the cur Sor to the next line.
Happy coding! Theme
Https://github.com/equinusocio/material-theme
After installing Material-theme,add the following to your "Settings-user" file and restart Sublime Text, the tab of the current edit is high Bright, I like that very much.
{
"theme": "Material-theme.sublime-theme",
"Color_scheme": "Packages/material theme/schemes/ Material-theme.tmtheme ",
}
You can also change other color schemas in the material-theme, such as:
{
"theme": "Material-theme-darker.sublime-theme",
"Color_scheme": "Packages/material theme/schemes/ Material-theme-darker.tmtheme ",
}
Recommended UI and font settings for a better experience:
{
"overlay_scroll_bars": "Enabled",
"Line_padding_top": 3,
"Line_padding_bottom": 3,
"Always_show _minimap_viewport ": True,
" Bold_folder_labels ": True,
" indent_guide_options ": [" Draw_normal "," draw_active "], //Highlight active indent
" font_options ": [" Gray_antialias "], //For Retina Mac
}
Settings (set)
Menu: preferences– "Settings-user, enter a custom configuration: Fix windows, Chinese file names appear as squares on tab:" Dpi_scale ": 1.0 Common Configurations
// User / Preferences.sublime-settings
{
"color_scheme": "Packages / Material Theme / schemes / Material-Theme-Darker.tmTheme",
"ignored_packages":
[
],
"material_theme_bold_tab": true,
"material_theme_compact_panel": true,
"material_theme_compact_sidebar": true,
"material_theme_contrast_mode": true,
"material_theme_disable_tree_indicator": true,
"material_theme_panel_separator": true,
"material_theme_small_statusbar": true,
"material_theme_small_tab": true,
"material_theme_tabs_autowidth": true,
"material_theme_tabs_separator": true,
"theme": "Material-Theme-Darker.sublime-theme",
"bold_folder_labels": true,
"font_face": "Consolas",
"font_size": 15,
"font_options": ["gray_antialias", "subpixel_antialias"],
"overlay_scroll_bars": "enabled",
"line_padding_top": 3,
"line_padding_bottom": 3,
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"indent_guide_options": ["draw_normal", "draw_active"], // Highlight active indent
"highlight_line": true,
"hot_exit": false, // Ask whether to save when exiting
"rulers":
[
80
],
"scroll_past_end": true,
"tab_size": 4,
"tab_completion": false,
"vintage_start_in_command_mode": true,
"dpi_scale": 1.0
}
I used the best model in sublime. It provides a VI edit command instead of Sublime Text. It is not the full function of the original VI package, but it is the text editor I have seen closest to the VI editor. Use your keyboard shortcuts and command packages to develop very quickly.
The above setting automatically turns on vintage mode when you open a file (tert-Note: Vintage is the vi-mode edit package for sublime text. You can use the combined VI command to invoke the sublime text feature, including multiple selections. )。
If you do not like this feature, just remove vintage_start_in_command_mode on it, if you want to completely disable vintage mode, then delete ignored_packages settings. User Preferences Http_proxy
"Http_proxy": "127.0.0.1:8087",