Jun 7, 2015

0 Run Python code from Sublime Text 2











Sublime Text for Python Development


Sublime Text for Python Development Execute Python in Sublime Text 2 Setting up Sublime Text for Python Python scripts inside Sublime Text 2
To run Python code in Sublime 2 , you must configure Python.sublime-build file.

File is located in following directory:

C:\Users\[your username]\AppData\Roaming\Sublime Text 2\Packages\Python\

Configuration data : 


{
    "cmd": ["C:\\python27\\python.exe", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}
Make sure, that you use correct Python install directory.


End result : 






0 comments :

Post a Comment

Comment: