zoukankan      html  css  js  c++  java
  • 关于sublime3的配置笔记

    1.安装的插件有Anaconda, GitGutter, SublimeCodeIntel

    Anaconda会有长度超过80警报的问题, 影响写代码的时候的判断,

    所以将Preferences/Packages Setting/Anaconda/Setting User 中加入以下代码

    {
        "anaconda_linting_behaviour": "save-only",
        "python_interpreter": "/usr/bin/python",
        "extra_paths":
        [
            "/home/mellcap/.virtualenvs/py2dj18/bin/python",
            "/home/mellcap/.virtualenvs/py2dj18/local/lib/python2.7/site-packages/",
        ],
        "pep8_ignore":
        [
            "E501","C0301","W0142","W0402","R0201","E1101","E1102","C0103","R0901","R0903","R0904","C1001","W0223","W0232","W0201","E1103","R0801","C0111"
        ]
    }

    其中mellcap是我的用户名, py2dj18是虚拟环境,根据自己的修改以下就可以了.

    2.SublimeCodeIntel会自动匹配并联想词汇, 这在换行的时候非常麻烦, 每次点Enter 都会误打出代码,

    解决办法分两步:第一步是在Perferences/setting User 中加入

        "auto_complete_commit_on_tab": true,

    然后看Perferences/KeyBindings Default中

    { "keys": ["enter"], "command": "commit_completion", "context":
            [
                { "key": "auto_complete_visible" },
                { "key": "setting.auto_complete_commit_on_tab", "operand": false }
            ]
        },

    如上代码是不可以修改的,所以自己在Perferences/KeyBindings User中加入以下代码:

    [
        { "keys": ["enter"], "context":
            [
                { "key": "setting.auto_complete_commit_on_tab", "operand": true }
            ]
        },
    ]

    以上就配置完毕了.

  • 相关阅读:
    责任链模式小试
    C++学习笔记(3)
    C++学习笔记(2)
    C++学习笔记(1)
    基本排序(二)插入排序(直接插入、Shell、折半)
    基本排序(一)交换排序(冒泡、快速)
    Spring Initializr生成的demo测试404错误
    Java生成二进制文件与Postman以二进制流的形式发送请求
    SSH工具脚本录入
    Spring Bean自动注册的实现方案
  • 原文地址:https://www.cnblogs.com/Mellcap/p/4672682.html
Copyright © 2011-2022 走看看