Sublime Text3 Python 环境设置及推荐扩展工具
2018-11-19 11:51
441 查看
Sublime Env Build
1. Customize
First: Tools --> Command Palette
Second: Type「install」and install Package Control
Finally: Install package to customize its color scheme or theme (predawn, material theme)
Preferences -> Settings
{ "theme": "Material-Theme-Darker.sublime-theme", "color_scheme": "Packages/Predawn/predawn.tmTheme", "material_theme_accent_graphite": true , "material_theme_compact_sidebar": true, "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.sublime-workspace"], "font_face": "Source Code Pro", "font_options": [ "no_round" ], "font_size": 15, "bold_folder_labels": true, "caret_extra_width": 1, "caret_style": "phase", "close_windows_when_empty": false, "copy_with_empty_selection": false, "drag_text": false, "draw_minimap_border": true, "enable_tab_scrolling": false, "highlight_line": true, "ignored_packages": [ "Vintage" ], "line_padding_bottom": 1, "line_padding_top": 1, "match_brackets_content": false, "match_selection": false, "match_tags": false, "open_files_in_new_window": false, "overlay_scroll_bars": "enabled", "preview_on_click": false, "scroll_past_end": true, "scroll_speed": 5.0, "show_full_path": false, "sidebar_default": true, "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true, "word_wrap": true, "show_definitions": false, "show_encoding": true, "show_errors_inline": false, "ensure_newline_at_eof_on_save": true, "highlight_modified_tabs": true, "use_simple_full_screen": true }
BracketHighlighter: 对应括号、引号提示(类似 Eclipse 的功能)
SideBarEnhancements: 增强左侧边栏对文件的操作功能, 仅在 Open Folder
下有效
SublimeCodeIntel: 代码提示及自动补全
SideBar Folders: 增加了侧边栏对于文件夹的支持
2. Python Env
Install package called 「Anaconda」
Preferences --> Package Settings --> Anaconda --> Settings-Usr
{ "auto_formatting": true, "autoformat_ignore": [ "E309", "E501" ], "pep8_ignore": [ "E309", "E501" ], "anaconda_linter_underlines": false, "anaconda_linter_mark_style": "none", "display_signatures": false, "disable_anaconda_completion": true }
Tools --> Build System --> New Build System
Win 将 cmd 中的 path 改为 python 的路径
# version 3.x { "cmd": ["/usr/local/bin/python3.6", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "quiet": true }
# version 2.x { "cmd": ["/usr/bin/python2.7", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "quiet": true }
3. C++ Env
// For Win { "path": "C:/Program Files (x86)/CodeBlocks/MinGW/bin", "cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}", "&", "start", "cmd", "/c", "${file_base_name} & echo. & pause"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "shell": true, "encoding":"cp936", }
// For Mac { "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && osascript -e 'tell application \"Terminal\" to activate do script \"clear&&${file_path}/${file_base_name} && read -p \\\"Press Enter to exit.\\\"&&exit\"'"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ { "name": "Run", "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"] } ] }
相关文章推荐
- 设置 Sublime Text 的 Python 开发环境
- Sublime Text3 python交互式环境+快捷键设置
- 将Sublime Text 3设置为Python全栈开发环境
- Sublime text_python开发环境设置(windows下)
- 设置 Sublime Text 的 Python 开发环境
- 设置 Sublime Text 的 Python 开发环境
- 设置 Sublime Text 的 Python 开发环境
- 设置 Sublime Text 的 Python 开发环境
- Sublime Text 2设置python开发环境
- 设置 Sublime Text 的 Python 开发环境
- 工具推荐. 在线unix, 在线python/perl脚本测试环境
- 设置 Sublime Text 的 Python 开发环境
- 设置 Sublime Text 的 Python 开发环境
- 为 Sublime Text 3 设置 Python 的全栈开发环境
- window环境下安装 pip 工具 【pip为Python的扩展管理工具】
- 设置 Sublime Text 的 Python 开发环境
- 将Sublime Text 3设置为Python全栈开发环境
- 设置 Sublime Text 的 Python 开发环境
- python环境搭建和开发工具的配置
- vim环境设置(应用于python编程)