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

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • 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.

Subscribe on YouTube