"Settings" open a new window, then "To...">
美文网首页
How to make Sublime-Text build w

How to make Sublime-Text build w

作者: yingshaoxo | 来源:发表于2017-03-04 19:00 被阅读105次

    1. "Preferences"-->"Settings" open a new window, then "Tools"-->"Build system"-->"New Build System"


    2. Put this in:

    {
      "cmd": ["/usr/bin/python3", "-u", "$file"],
      "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
      "selector": "source.python"
    }
    

    3. Save as "Python3.sublime-build" in "Packages/User/" folder.


    4. Go to "Build system", change it to "Python3".


    5. OK, everything is alright, press "Ctrl + B" running codes, have fun!


    PS:

    If you don't know where Python3 is, just open Terminal, inputting "which python3" + Enter, then you'll get Python3 path if you already installed.

    相关文章

      网友评论

          本文标题:How to make Sublime-Text build w

          本文链接:https://www.haomeiwen.com/subject/yzqvjttx.html