Running Python interactively from within Sublime Text 2

前端 未结 5 1559
情歌与酒
情歌与酒 2020-12-05 05:54

I have looked at all the answers on this forum but I\'m missing something. I want to be able to hit Cmd+B while editing a Python file \"myfile.py\" in

5条回答
  •  孤城傲影
    2020-12-05 06:05

    The answer is much more simple than your approach. Just define a new build "profile" (Build system), in it you capture exactly the default Python build, except changing option -u to -ui

    { "cmd": ["C:\\python33\\python.exe", "-ui", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" }

提交回复
热议问题