Visual Studio Code Adds Language Detection
Written by Mike James   
Thursday, 09 September 2021

The latest monthly update to Visual Studio Code has been released with improvements including automatic language detection of the programming language when code is pasted into the editor.

Visual Studio Code (VS Code) is Microsoft's free to use source-code editor. While its name is the misleading as it has nothing to do with Visual Studio, its monthly updates are over time turning it into a useful working environment.

vscodeicon

The new automatic language detection was introduced as an experimental feature in the last release meaning that VS Code would automatically set the language mode for an untitled file based on the contents. The automatic language detection feature uses machine learning to guess the language and the machine learning model runs entirely local on your machine. The model is powered by the open-source ML library, Tensorflow.js, and the ML model from Guesslang. The feature is now enabled by default, and now includes detection to include files that don't have a file extension.

The next addition of note is native bracket pair color matching in the editor. This is an option that can be enabled. The colors can use those of the chosen theme, and up to six colors can be configured. The developers say that they implemented this feature to address performance issues of the Bracket Pair Colorizer extension previously used, and the new option means that even changes in huge documents are reflected immediately.

Other improvements in the new version include syntax highlighting in the settings editor to highlight description code blocks, and better display of box drawing and block element characters via custom terminal glyph rendering.

There are also notebook improvements including markdown link navigation and faster rendering of large outputs, and new JavaScript/TypeScript inlay hints for parameter names and types.

VS Code is available now and is still evolving into something useful.

vscodeicon

More Information

Visual Studio Code Website

Related Articles

VS Code Adds Terminal Tabs

Python Extension For Visual Code Updated

VS Code Improves Docker Support

Edge Tools Added To VS Code

Visual Studio Online Is VS Code

Open Source Visual Studio Code Without Trackers Launched

Run VSCode in the Browser

Atom v Visual Studio Code - The Unexpected Consequence Of Consolidation

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


The Impact of Copilot Chat
26/07/2023

All GitHub Copilot for Business users now have access to a limited GitHub Copilot Chat beta, bringing the power of conversational coding right to the IDE. What impact can we expect on developer produc [ ... ]



Mozilla's AI On MDN Still Experimental
13/07/2023

Mozilla has introduced two new features on MDN that make use of artificial intelligence, to a mixed response. Should we trust AI Help and AI Explain, both of which are powered by GPT-3.5?


More News

Summer SALE Kindle 9.99 Paperback $10 off!!

esp32book

 

 

Comments




or email your comment to: [email protected]

Last Updated ( Thursday, 09 September 2021 )