SublimeText is a very powerful Text editor. The following describes how to create SublimeText3 as a PythonDjango development tool: 1. install Sublime Text 3.
Although Sublime 3 is still in beta stage, it is very stable and the speed is improved compared with Sublime 2. sublime 3 can be downloaded and installed on the official website. although Sublime is free software, if you have sufficient financial capabilities, you can consider purchasing it to support it.
2. install Package Control
Sublime Package Control can be said to be a required plug-in, because it provides a convenient function to install/upgrade/delete the Sublime plug-in. for the installation method, see The Package Control official website.
After the installation is complete, you can use the shortcut key ctrl + shift + p (Win, Linux) or cmd + shift + p (OS X), where Package Control: these commands start with Package Control: Install Package, Package Control: Remove Package, and Package Control: List Packages.
3. recommended plug-ins
Now you can use Package Control to install other plug-ins. press ctrl + shift + p (Win, Linux) or cmd + shift + p (OS X), enter Package Control: Install Package and press Enter. then press Enter to Install the package:
Anaconda
Anaconda is currently the best Python auto-completion and syntax prompt plug-in Sublime 3, and provides "jump to definition", "search for use", "Show Document ", "Auto-rename" and other IDE plug-in functions.
Djaneiro
Provide support for Django.
SideBarEnhancements
Provides enhancements to the default sidebar. you can use the shortcut keys Ctrl + k Ctrl + B (Linux, Win) and CMD + k CMD + B (OS X) to call the Sublime sidebar. after installation, you can use the F12 key to open the current file in the browser.
Git-related
We need to install SublimeGit and GitGutter. The former can help us to use Git commands in Sublime (through ctrl + shift + p or cmd + shift + p ), the latter shows Git differences in Gutter during editing, which is very convenient.
Topic-related
Theme-Soda and Monokai Extended are installed and used in user settings:
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", "theme": "Soda Dark 3.sublime-theme",
Other plug-ins
You can also install Emmet, SublimeLinter (pay attention to dependencies), ColorPicker, Gitignore, and other plug-ins.
4. set
The following are the recommended settings. you can copy and paste them into user settings. Note that the font file must be installed in advance:
{ "always_show_minimap_viewport": true, "auto_complete_commit_on_tab": false, "auto_find_in_selection": true, "bold_folder_labels": true, "color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", "theme": "Soda Dark 3.sublime-theme", "default_line_ending": "unix", "detect_indentation": false, "detect_slow_plugins": false, "drag_text": false, "draw_white_space": "selection", "ensure_newline_at_eof_on_save": true, "fallback_encoding": "UTF-8", "font_face": "Ubuntu Mono", "font_size": 16, "highlight_line": true, "highlight_modified_tabs": true, "ignored_packages": [ "Vintageous", "Vintage" ], "indent_guide_options": [ "draw_active", "draw_normal" ], "indent_to_bracket": true, "line_padding_bottom": 1, "line_padding_top": 1, "preview_on_click": false, "rulers": [ 120 ], "scroll_past_end": true, "shift_tab_unindent": true, "show_encoding": true, "tab_size": 4, "translate_tabs_to_spaces": true, "trim_automatic_white_space": true, "trim_trailing_white_space_on_save": true, "word_wrap": true, "wrap_width": 120}