建立崇高的文本系统 [英] Build systems in Sublime Text
问题描述
我刚开始学习编程(在C ++和Python),并开始我的意思是总开头(世界你好开始...)。不想使用多个IDE的,我希望能够code和构建简单的程序与我的文本编辑器,崇高的文本2.有人能指出我,一步一步的教程,如何实现C ++和Python编译和崇高的文本执行能力。
I'm just beginning to learn programming (on C++ and Python), and by beginning I mean total beginning ("hello world" beginning...). Not wanting to use multiple IDE's, I would like to be able to code and build–simple–programs with my text editor, Sublime Text 2. Could someone indicate me, with a step-by-step tutorial, how to implement C++ and Python compiling and executing capabilities in Sublime Text.
我搜索崇高文本建立网站的系统,但答案是非常明确的,不能帮助新秀像我这样的(但他们可能会帮助我更高版本)。
I've searched Sublime Text build systems on the site, but the answers are very specific and can't help a rookie like me (but they'll probably help me later).
感谢
推荐答案
崇高文本2已经自带了构建和运行Python和C ++程序的脚本。
Sublime Text 2 already comes with scripts for building and running Python and C++ programs.
只需preSS <大骨节病> Cmd的骨节病> + <大骨节病>乙骨节病>(或<大骨节病>控制骨节病> + <大骨节病>乙骨节病>在Windows和放大器; Linux的)当一个或的.py .cpp文件打开。 Python的文件将自动执行并显示结果中内置的控制台。
Simply press Cmd+B (or Ctrl+B on Windows & Linux) when a .py or .cpp file is open. The Python file will automatically execute and show the result in the built in console.
对于C ++,你需要preSS <大骨节病> Cmd的骨节病> + <大骨节病>移骨节病> + <大骨节病>乙骨节病>(<大骨节病>控制骨节病> + <大骨节病>移骨节病> + <大骨节病>乙骨节病>在Windows和放大器; Linux)的建成后运行它。
For C++, you need to press Cmd+Shift+B (Ctrl+Shift+B on Windows & Linux) to run it after building.
您需要安装的Python(得到它href=\"http://python.org/download/\"> 适用于Windows),也是一个C ++编译器,对于C编译系统++试图调用G ++默认(得到它<一个href=\"http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/\">here适用于Windows。记得在安装时选择C ++编译器!)。
You need to have Python installed (get it here for Windows), and also a C++ compiler. The build system for C++ tries to call g++ by default (get it here for Windows. Remember to select the C++ compiler when installing!).
您将需要添加的目录路径( C:\\ python32 \\
或蟒蛇类似, C:\\ MinGW的\\ BIN
或C ++编译器类似)。
You will need to add the directories to path (c:\python32\
or similar for python, c:\mingw\bin
or similar for the C++ compiler).
在Windows中,您可能会遇到运行C ++程序(它尝试使用bash)的问题。但是,<大骨节病>控制骨节病> + <大骨节病>乙骨节病>构建程序,然后就可以使用命令行运行它。 Python的作品完美的Windows。
On windows, you may experience problems running the C++ programs (it tries to use bash). But Ctrl+B builds the program, and you can then use a command line to run it. Python works flawlessly on Windows.
这篇关于建立崇高的文本系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!