SublimeText3自定义

版权声明:本文为博主原创文章,转载请注明出处: https://blog.csdn.net/Hubz131/article/details/81349846

1.Anaconda3-python3.6配置

{
	"encoding": "cp936", 
	"working_dir": "$file_path",  
	"shell_cmd": "D:\\ProgramData\\Anaconda3\\python.exe -u \"$file\"",  
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  
	"selector": "source.python"  
}

2.Anaconda2-python2.7配置

{
	"encoding": "cp936", 
	"working_dir": "$file_path",  
	"shell_cmd": "D:\\ProgramData\\Anaconda3\\python.exe -u \"$file\"",  
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  
	"selector": "source.python"  
}

3.按键绑定-用户

[
    { "keys": ["ctrl+enter"], "command": "build" },

    { "keys": ["ctrl+end"], "command": "exec", "args": {"kill": true} },

    { "keys": ["ctrl+f12"], "command": "toggle_comment", "args": { "block": false } },

    {
        "keys":["ctrl+r"],
        "caption": "SublimeREPL: Python - RUN current file",
        "command": "run_existing_window_command", 
        "args":
        {
            "id": "repl_python_run",
            "file": "config/Python/Main.sublime-menu"
        }
    }
]

猜你喜欢

转载自blog.csdn.net/Hubz131/article/details/81349846