sublime配置文件设置解释器

sublime设置python解释器配置文件。

tools--build system--new build system

{  
    "cmd": "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python3.exe -u "$file"",  
    "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",  
    "selector": "source.python",
    "env": {"PYTHONIOENCODING": "utf8"}
}

save保存,重命名即可。按照默认路径保存。

sublime设置制表符提示。用惯了pycharm的再换到sublime,会觉得很多时候,莫名其妙被空格或者是tab、enter键困扰,配置上如下设置,可以让制表符更加明晰。

Preferences-Settings

{
    "draw_white_space": "all",
    "font-size": 16,
    "ignored_packages":
    [
        "Vintage"
    ]
}
原文地址:https://www.cnblogs.com/2012-dream/p/12766748.html