News

Python in VS Code Team Is Breaking Up Big Extension

Microsoft's Python in Visual Studio Code dev team has begun to break up its big, super-popular extension into separate tools in the regular monthly update for April 2022.

The team manages the Python extension in the VS Code marketplace, providing IntelliSense, linting, debugging and so on. It's by far the most popular tool in the marketplace with more than 53 million installs, nearly 20 million more than any other extension.

In the April 2022 release post, the team announced the first extension to be separated from the main extension, Pylint.

"Our team is working towards breaking the tools support we offer in the Python extension into separate extensions, with the intent of improving performance, stability and no longer requiring the tools to be installed in a Python environment -- as they can be shipped alongside an extension," said Karthik Nadig. "The first one we started to work on is Pylint."

As its name suggests, the tool provides linting functionality, the highlighting of syntactical and stylistic problems in Python source code in order to help coders identify and correct subtle programming errors or possibly error-prone unconventional coding practices.

Pylint in Action
[Click on image for larger, animated GIF view.] Pylint in Action (source: Microsoft).

It's unclear just how many such tools are bundled into the main Python extension or how many will be separated out, but documentation shows that Pylint is among the various projects the tool is integrated with:

  • Debugging support: Django, Flask, gevent, Jinja, Pyramid, PySpark, Scrapy, Watson
  • Formatting: autopep8, black, yapf
  • Interpreter support: conda, direnv, pipenv, poetry, pyenv, venv, virtualenv
  • Linting: bandit, flake8, mypy, prospector, pylint, pydocstyle, pylama
  • Testing: pytest, unittest

Other highlights of the latest update include:

  • Interpreter display in the status bar moved to the right: The selected interpreter version display was moved toward the right side in the status bar, next to the language status item Python. To avoid cluttering up the status bar, it only appears when a Python or a settings.json file is open.
  • Simpler way to create empty Python and Jupyter Notebook files: Developers can use the "File: Create New ..." command in the command palette to create empty Python or Jupyter notebook files. The same functionality comes with clicking on "New File ..." from VS Code's welcome page.
  • Fix for running and debugging files with conda environments: Issues that caused a regression when running files in activated conda environments have been fixed.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube