Skip to content
master
Go to file
Code
This branch is 3874 commits behind microsoft:main.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Python

An extension with rich support for the Python language (including Python 3.6), with features including the following and more:

Quick Start

  • Install the extension
  • optionally install ctags for Workspace Symbols, from here, or using brew install ctags on OSX.
  • If Python is in the current path
    • You're ready to use it.
  • To select a different Python Interpreter/Version (or use Virtual Environment), use the command Select Workspace Interpreter)

Documentation

For further information and details continue through to the documentation.

Issues, Feature Requests and Contributions

  • Contributions are always welcome. Fork it, modify it and create a pull request.
    • Details on contributing can be found here
  • Any and all feedback is appreciated and welcome.

Feature Details

  • IDE Features
    • Auto indenting
    • Code navigation (Go to, Find all references)
    • Code definition (Peek and hover definition, View Signature)
    • Rename refactoring
    • Sorting Import statements (use "Python: Sort Imports" command)
  • Intellisense and Autocomplete with support for PEP-0484
    • Ability to include custom module paths (e.g. include paths for libraries like Google App Engine, etc.)
    • Use the setting python.autoComplete.extraPaths = []
    • For instance getting autocomplete/intellisense for Google App Engine, add the following to your settings file:
"python.autoComplete.extraPaths": [
    "C:/Program Files (x86)/Google/google_appengine",
    "C:/Program Files (x86)/Google/google_appengine/lib" ]
  • Scientific tools (Jupyter/IPython)
    • This functionality has been moved into a separate extension Jupyter
  • Code formatting
    • Auto formatting of code upon saving changes (default to 'Off')
    • Use either yapf or autopep8 for code formatting (defaults to autopep8)
  • Linting
    • It can be turned off (default is to be turned on and use pylint)
    • Multiple linters supported (along with support for configuration files for each linter)
    • Supported linters include pylint, pep8, flake8, pydocstyle, prospector
    • Paths to each of the linters can be optionally configured
    • Custom plugins such as pylint plugin for Django can be easily used by modifying the settings as follows:
"python.linting.pylintArgs": ["--load-plugins", "pylint_django"]
  • Debugging
    • Watch window
    • Evaluate Expressions
    • Step through code (Step in, Step out, Continue)
    • Add/remove break points
    • Local variables and arguments
    • Multiple Threads and Web Applications (such as Flask, Django, with template debugging)
    • Expanding values (viewing children, properties, etc)
    • Conditional break points
    • Remote debugging (over SSH)
    • Google App Engine
    • Debugging in the integrated or external terminal window
    • Debugging as sudo
  • Unit Testing
    • Support for unittests, nosetests and pytest
    • Test results are displayed in the "Python" output window
    • Run failed tests, individual tests
    • Debugging unittests
  • Snippets
  • Miscellaneous
    • Running a file or selected text in python terminal
  • Refactoring

Generate Features

Debugging

Unit Tests

Scientific Tools

Local Help

Roadmap

Change Log

Version 0.7.0 (3 August 2017)

  • Displaying internal documntation #1008, #10860
  • Fixes to 'async with' snippet #1108, #996
  • Add support for environment variable in unit tests #1074
  • Fixes to unit test code lenses not being displayed #1115
  • Fix to empty brackets being added #1110, #1031
  • Fix debugging of Django applications #819, #999
  • Update isort to the latest version #1134, #1135
  • Fix issue causing intellisense and similar functionality to stop working #1072, #1118, #1089
  • Bunch of unit tests and code cleanup
  • Resolve issue where navigation to decorated function goes to decorator #742
  • Go to symbol in workspace leads to nonexisting files #816, #829

Source

GitHub

License

MIT

Data/Telemetry

The Microsoft Python Extension for Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. This extension respects the telemetry.enableTelemetry setting which you can learn more about at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.

About

Cross platform editing, debugging, linting, testing (and more) Python (2.7 to 3.6) code (including Jupyter support) using Visual Studio Code

Resources

License

Packages

No packages published
You can’t perform that action at this time.