• sublime3中运行python 和设置


     点bulid system建立下面文件

    {
    "cmd":["C:/ProgramData/Anaconda3/python.exe", "-u", "$file"],
    "path":"C:/Users/csq/AppData/Local/Programs/Python/Python36-32", // 注意:路径根据自己的python安装路径而定
    "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
    "selector": "source.python"
    }

    keybind:里面贴上:

    [
    { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
    {"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": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },
    { "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
    { "keys": ["ctrl+k"], "command": "new_pane", "args": {"move": false} },
    { "keys": ["ctrl+up"], "command": "swap_line_up" },
    { "keys": ["ctrl+down"], "command": "swap_line_down" },
    { "keys": ["ctrl+r"], "command": "duplicate_line" },


    ]

    这些是我自己设置的快捷键,因为自己更常用

    快捷键:

    复制到keybind里面

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

     

  • 相关阅读:
    Spring中的AOP
    P2782 友好城市
    1576 最长严格上升子序列
    1058 合唱队形 2004年NOIP全国联赛提高组
    5294 挖地雷
    1643 线段覆盖 3
    4768 跳石头
    1026 逃跑的拉尔夫
    2727:仙岛求药
    codevs 4888 零件分组
  • 原文地址:https://www.cnblogs.com/zhangbo2008/p/8637499.html
Copyright © 2020-2023  润新知