Use sublime text for PY development under Ubuntu

Source: Internet
Author: User
Tags sublime text git commands



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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.