Source code editor Visual Studio Code 1.94 simplifies file searches
In the September update, Visual Studio Code brings new features for file search, testing Python code and startup speed.
(Image: Mega Pixel / shutterstock.com)
Microsoft has released version 1.94 of its free source code editor Visual Studio Code with a number of updates. Among other things, the file search in Explorer should now be easier and VS Code starts faster thanks to the migration to ECMAScript modules.
File search made easy
The VS Code team has revised the Find feature in the Explorer view to make it easier to search for files in large projects. Find can be opened in the file explorer via Ctrl+Alt+F. During the search it is possible to switch between Fuzzy Matching and Continuous Matching.
(Image:Â Microsoft)
Some context menu actions are temporarily deactivated during the search. The development team will inform you about any changes in this regard.
Videos by heise
Switch to ECMAScript and npm
According to Microsoft, the switch to ECMAScript modules, which has now made it into the stable release, significantly improves the startup performance of the source code editor: All layers of the VS Code kernel now use the import and export syntax in JavaScript for loading and exporting modules. All uses of the legacy AMD (Asynchronous Module Definition) loader are disabled and will be removed this month.
In addition, npm is now the default package manager in the microsoft/vscode repository. The switch from yarn to npm should bring two advantages: Firstly, it was originally instigated to improve performance, and secondly, the supply chain should now be more secure due to the reduced number of tools VS Code has a dependency on, among other things.
Checking the test coverage of Python tests
There is also an update for Python testing: this can now be executed with test coverage. To accomplish this, developers must either click on the corresponding coverage run icon in the test explorer or select Run with coverage in the menu from which they usually execute test runs. The Python extension will then run the coverage function using the pytest-cov plug-in if you are using pytest, and coverage.py if you are using unittest. Test coverage is a measurement in VS Code that indicates how much of the code is covered by a test. This makes it possible to identify parts of the code that are not tested.
Microsoft will provide all further information on the new release in the announcement.
(mai)