sublime text3 安装 python环境配置


python的话 装一个 `repl`

设置
```
{
    "always_show_minimap_viewport": true,
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "default_encoding": "UTF-8",
    "draw_minimap_border": true,
    "font_face": "微软雅黑Monaco",
    "font_size": 13,
    "ignored_packages":
    [
    ],
    "save_on_focus_lost": true,
    "tab_size": 4,
    "translate_tabs_to_spaces": true,
    "update_check": false,
    "word_wrap": true,
    "wrap_width": 80
}
```

快捷键设置

```
[
     {"keys":["f5"],
    "caption": "SublimeREPL: Python - RUN current file",
    "command": "run_existing_window_command", "args":
    {
        "id": "repl_python_run",
        "file": "config/Python/Main.sublime-menu"
    }},  //若是添加,前一段需要添加','
    
    {"keys": ["f8"], 
    "command": "markdown_preview", 
    "args":
     { "target": "browser"} 
    },
    {"keys":["f2"],
    "caption": "SublimeREPL: Python - Sublime Text Console",
    "command": "run_existing_window_command", "args":
    {
        "id": "repl_sublime_python",
        "file": "config/Sublime/Main.sublime-menu"
    }},
    {
        "command": "add_current_time",
        "keys": [
            "ctrl+shift+."
        ]
    },
    {"keys":["f1"],
    "caption": "Python - IPython",
    "command": "run_existing_window_command", "args":
    {
        "id": "repl_python_ipython",
        "file": "config/Python/Main.sublime-menu"
    }},
    {"keys": ["ctrl+alt+d"], "command": "docstring"}

]

```

 然后在
`Preferences -> Package Settings -> SublimeREPL -> Settings - User`
添加 
```
{
"default_extend_env": {"PATH":"C:\\python27\\"},
}
```
就好了

你可能感兴趣的:(sublime text3 安装 python环境配置)