• 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/

  • 相关阅读:
    DS博客作业03--树
    C博客作业05--指针
    C博客作业04--数组
    C博客作业03--函数
    C博客作业02--循环结构
    顺序分支结构
    我的第一篇博客
    第1次任务:购物车程序的面向对象设计
    5-互评-OO之接口-DAO模式代码阅读及应用
    第三周-面向对象基础与类的识别-自主学习任务
  • 原文地址:https://www.cnblogs.com/deen-/p/7182967.html
Copyright © 2020-2023  润新知