在你的代码处把构建系统改为你自己写的(点击 Tools -> Build System -> **),之后就能通过快捷键 Ctrl+B
Click Tools -> Build System -> New Build System..., an editing interface will pop up, in which you can write your custom build system. #🎜🎜#
#🎜🎜#For the format, you can refer to the one that comes with the editor. There are a bunch of sublime-package files in the Packages folder of the editor installation directory, which are actually a bunch of compressed files. , there is a *.sublime-build file inside which is the default build system. For example, the default Python build system is #🎜🎜#
rrreee
#🎜🎜# Just follow this and change the shell_cmd part. If you want to use python3, change the second line to #🎜🎜#
rrreee
#🎜🎜#If it is the python environment provided by virtualenv, change it to the corresponding path. After writing, name it **.sublime-build and save it to the default path, ** is the name. #🎜🎜#
#🎜🎜#Change the build system to your own in your code (click Tools -> Build System -> **), and then use the shortcut key Ctrl +B to use your custom interpreter. #🎜🎜#
You can create a new
Build System
.Build System
。点击
Tools -> Build System -> New Build System...
,会弹出一个编辑界面,在这个界面里面可以写出你的自定义构建系统。格式可以参考编辑器自带的,在编辑器安装目录的
Packages
文件夹有一堆sublime-package
文件,实际上是一堆压缩文件,这里面有一个*.sublime-build
文件就是默认的构建系统。比如默认的 Python 构建系统就是你就照着这个,把
shell_cmd
部分改过来,如果你要用 python3,就把第二行改成如果是 virtualenv 带的 python 环境,就改成相应的路径,写完后命名为
**.sublime-build
保存到默认路径,** 为取的名字。在你的代码处把构建系统改为你自己写的(点击
ClickTools -> Build System -> **
),之后就能通过快捷键Ctrl+B
Tools -> Build System -> New Build System...
, an editing interface will pop up, in which you can write your custom build system. #🎜🎜# #🎜🎜#For the format, you can refer to the one that comes with the editor. There are a bunch ofsublime-package
files in thePackages
folder of the editor installation directory, which are actually a bunch of compressed files. , there is a*.sublime-build
file inside which is the default build system. For example, the default Python build system is #🎜🎜# rrreee #🎜🎜# Just follow this and change theshell_cmd
part. If you want to use python3, change the second line to #🎜🎜# rrreee #🎜🎜#If it is the python environment provided by virtualenv, change it to the corresponding path. After writing, name it**.sublime-build
and save it to the default path, ** is the name. #🎜🎜# #🎜🎜#Change the build system to your own in your code (clickTools -> Build System -> **
), and then use the shortcut keyCtrl +B
to use your custom interpreter. #🎜🎜#