Visual Studio Code is a good code editor with support of Python and extended features such as code Debuging. It looks very similar to Sublime Text, works fast and extendable with extensions. Code autocomplition works fine, allowing to see variable names and function descriptions.
# First of all be sure that HomeBrew installed and up-to-date.
brew doctor
brew update
brew upgrade
# Install ctags to use 'Go to Symbol' functionality.
brew install ctags
# Create virtualenv with python packages for VS Code.
mkvirtualenv workspace
# And install required packages for Python support.
pip install pylintOpen Extensions sidebar and install next:
Python- extension for improved support of Python code
Open Code - Preferences - Settings and edit User Settings to add these options:
{
"python.venvPath": "~/.virtualenvs",
"python.pythonPath": "/Users/username/.virtualenvs/workspace/bin/python",
"python.autoComplete.addBrackets": true
}To validate that it works - create new python file and save it. It should highlight errors and warnings in the code. If no - then path to the python interpreter is wrong.
- Python VS Code Docs - useful information about Visual Studio Code