Download method
Https://www.sublimetext.com/docs/3/linux_repositories.html
First install the package Control
Https://packagecontrol.io/installation#st3
After installing the package control above, we can install the plugin by opening the package control via the shortcut key ctrl+shift+p. Enter install in the input box that opens, and automatically prompts you to select the install package based on your input.
Anaconda
Anaconda is currently the best Python autocomplete and syntax hint plugin in Sublime 3, and provides "jump to Definition", "Find and use", "Show Documents", "Auto Rename" functions of plugins in the IDE.
Git-related
We need to install Sublimegit and Gitgutter, which can help us to use git commands in Sublime (via Ctrl+shift+p or cmd+shift+p), which shows git differences in gutter when editing, Will exactly.
I feel there is a reference document for the goods:
Configure sublime to build a python editor
A recommended configuration, to be observed:
{
"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
}
Use sublime text for PY development under Ubuntu