Visual Studio Code 1.95 Introduces Python Docstring Template Generation and Additional Features
Microsoft has unveiled the October 2024 update (version 1.95) for its well-regarded code editor, Visual Studio Code. As is customary with updates for VS Code, this release introduces a host of enhancements. Below is a summary of the key features included in this latest update:
- Copilot Edits – Accelerate the process of implementing significant changes across several files
- Copilot Chat in Secondary Side Bar – Maintain the availability of Copilot Chat while you code
- Multiple GitHub accounts – Access multiple GitHub accounts in VS Code at once
- Copilot code reviews – Obtain a quick assessment or a thorough review of your uncommitted changes
- Docstrings with Pylance – Create docstring templates for your classes and methods
- Preview settings indicator – Access experimental and preview settings right from the Settings editor
- Copilot extensibility – Highlighting Copilot extensibility capabilities within VS Code
Among these enhancements, the feature allowing simultaneous access to multiple GitHub accounts stands out as a significant convenience for users managing several accounts. Microsoft illustrates this functionality with examples such as:
- Utilizing Account1 for Settings Sync while Account2 works with the GitHub Pull Request extension
- Employing Account1 for the GitHub extension (for pushing code) and Account2 for GitHub Copilot
To leverage the multiple account feature, simply initiate a login process through a function like Settings Sync or any of the extensions, enabling you to sign in with another account seamlessly.
Another exciting addition for Python developers is the docstring generation feature via Pylance. To create a docstring, you just need to type three single or double quotes, hit Ctrl + Space, select the lightbulb icon, and then choose the Generate Docstring code action. While not obligatory, incorporating docstrings in Python code is considered a best practice that significantly enhances the readability and maintainability of the code.
If you’re already using Visual Studio Code, keep an eye out for this update. If you haven’t downloaded it yet, you can get it from the official VS Code website.
Images Credit: Neowin.net
Leave a Reply