Python with PyDev on Visual Studio Code
fabiofz at gmail.com
Mon Feb 19 07:48:03 EST 2018
I'm happy to announce that PyDev (http://www.pydev.org) can now be used for
Python development on Visual Studio Code!
The first release already provides features such as code analysis, code
completion, go to definition, symbols for the workspace and editor, code
formatting, find references, quick fixes and more (see
http://www.pydev.org/vscode/ for details).
All features have a strong focus on speed and have been shaped by the usage
on PyDev over the last 14 years, so, I believe it's already pretty nice to
use... there are still some big things to integrate (such as the PyDev
debugger), but those should come on shortly.
The requisites are having java 8 (or higher) installed on the system (if it
doesn't find it automatically the java home location may need to be
specified in the settings -- http://www.pydev.org/vscode/ has more details)
and Python 2.6 or newer.
By default it should pick the python executable available on the PATH, but
it's possible to specify a different python executable through the settings
on VSCode (see http://www.pydev.org/vscode/settings.html for details).
Below, I want to share some of the things that are unique in PyDev and are
now available for VSCode users:
- Niceties from PyDev when typing such as auto-adding self where needed
(note that having the editor.formatOnType setting turned on is a requisite
for that to work).
- Really fast code-completion, code-analysis and code-formatting
- Code completion provides options to import modules, top level
classes, methods and variables (python.pydev.preferredImportLocation can be
used to determine the location of the import).
- Quick fix which automatically allows adding an import for unresolved
- In-file navigation to previous or next class or method through
Ctrl+Shift+Up and Ctrl+Shift+Down.
See: http://www.pydev.org/vscode/ for more information!
PyDev on VSCode
PyVmMonitor - Profile Python on VSCode
More information about the Python-announce-list