sublime settings

{
    "font_face": "Monaco",            // 编辑器的字体
    "font_size": 13,                  // 字号
    "highlignt_line": true,           // 是否高亮当前行
    "tab_size": 2,                    // tab 字符宽度(对应的空格数)
    "translate_tabs_to_spaces": true, // 是否自动将新插入的 tab 转换为空格
    "word_wrap": true                 // 是否自动换行
}

monaco,先从网上下载ttf格式,然后放到windows目录下的font目录

配置python开发环境:

  • pylinter 插件:

  对违反规范提示图标

{
    // Configure pylint's behavior
  "pylint_rc": "/Users/daniel/dev/pylintrc",

   // Show different icons for errors, warnings, etc.
   "use_icons": true,

   // Automatically run Pylinter when saving a Python document9 
   "run_on_save": true,

   // Don't hide pylint messages when moving the cursor
  "message_stay": true
}
  • SublimeCodeIntel 插件:

  可以自定义提示的内容库,我的python智能提示设置

"Python": {
         "python":"D:/Python27/python.exe",
         "pythonExtraPaths":
            [
                  "D:/Python27",
                  "D:/Python27/DLLs",
                  "D:/Python27/Lib",
                  "D:/Python27/Lib/lib-tk",
                  "D:/Python27/Lib/site-packages"
             ]
         }
  • Python PEP8 Autoformat 插件:格式化代码
{
      "auto_complete": false,
      "caret_style": "solid",
      "ensure_newline_at_eof_on_save": true,
      "find_selected_text": true,
      "font_size": 11.0,
      "highlight_modified_tabs": true,
      "line_padding_bottom": 0,
      "line_padding_top": 0,
     "scroll_past_end": false,
     "show_minimap": false,
     "tab_size": 4,
     "translate_tabs_to_spaces": true,
     "trim_trailing_white_space_on_save": true,
     "wide_caret": true,
    "word_wrap": true,
 }

 快捷键 CTRL+SHIFT+R 自动格式化python代码

参考博客:http://blog.jobbole.com/40660/

原文地址:https://www.cnblogs.com/deen-/p/7182967.html