Set up Python 3 build system with Sublime Text 3

后端 未结 8 2187
青春惊慌失措
青春惊慌失措 2020-11-28 21:46

I want to configure Sublime Text 3 to build Python 3, but I don\'t seem to understand how the builds work. Many tutorials have told me to make a build file containing code s

8条回答
  •  旧时难觅i
    2020-11-28 22:37

    Version for Linux. Create a file ~/.config/sublime-text-3/Packages/User/Python3.sublime-build with the following.

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

提交回复
热议问题