I am new to Sublime Text 2. Basically I want to setup Sublime T2 as a Python IDE.
I have come across various questions with regards to Python and Sublime T2, but I couldn't find a guide from a beginners perspective. This is what I have done so far:
- Installed Python.
- Installed Sublime T2.
- Installed Sublime Package Control
What steps (e.g. package installations, etc.) should I follow to complete the Sublime Python IDE Setup?
Besides Package Control, I use the following packages for Python development:
I found SublimeCodeIntel and Pylinter to be especially helpful for writing Python code in Sublime Text.
Besides installing these packages you should also tweak some of Sublime's preferences. For example, Python can be quite picky about whitespace. Therefore I recommend taking extra care for setting up how Sublime handles whitespace. I'm using these settings (put them in Preferences -> Settings - User):
If you want to know more, I've written a blog post about setting up Sublime Text for Python development: https://dbader.org/blog/setting-up-sublime-text-for-python-development
I've documented my Sublime Text workflow here. Hope this helps.
You should be able to select a build system in the
tools
menu.Then, ctrl + B will build, and pull up the interpreter for you.
EDIT: ctrl + ` will also open your console, without building the project. From there, you can run Python commands with the built-in interpreter.