VS Code Snippets Leads Recent Open Source GA Announcements – Visual Studio Magazine


New

VS Code Snippets Leads Recent Open Source GA Announcements

GitHub’s “Release Radar” for November shows a Visual Studio snippets project leading a series of open source offerings that reached general availability in November.

Specifically, the project is Snippets for VSCode 2.1 from “Taha BASRI”, which, despite the minor version designation, is in fact the first full version.

“VS Code is one of the most popular code editors out there,” GitHub said last week in its regular monthly article detailing the new GA announcements. “Snippets for VS Code is an extension that allows developers to play with snippets without leaving the editor. Snippets will sync across all of your devices using VSCode. Although 2.1 may appear to be a smaller version, this is the first release delivered as a full release. Congratulations to the team for exiting the pre-release. ”

The README.md file of the project describes it:

Snippets are great additions for anyone who wants to save time during development. They make it easy to enter repetitive code, such as loops, complex HTML structures, or reusable methods.

Visual Studio Code already supports snippets, including the appearance of snippets in IntelliSense (Ctrl + Space), tab completion, as well as a dedicated snippet selector (Insert Snippet in Command Palette ).

This extension takes snippets to another level by bringing new features that will improve the handling of snippets.

The tool helps developers create, organize, open, edit, and synchronize snippets. This latter ability is still experimental, as it uses VS Code’s built-in parameter sync feature, which is still in preview.

Editing a code snippet with VS Code's built-in snippet syntax in the animation action
[Click on image for larger, animated GIF view.] Editing a snippet with VS Code’s built-in snippet syntax in an animated action (source: Taha BASRI).

The project description reads: “From version 2.0, Excerpts supports backup using Synchronization of VSCode parameters characteristic. This means that you will no longer need to manage the location of snippets in your local file machine. Your snippets will be saved with your VSCode data, regardless of your operating system. ”

The release notes show the following features that have been added since v2.0:

  • Provide snippets as suggestions through IntelliSense or by typing the “>” character.
  • Update vulnerable dependencies.
  • Provide more secure logic when dealing with the restore process.
  • Rename the backup instead of deleting it.
  • Use globalState as the default location for snippets. No more files in the file system!
  • Enable synchronization using the VSCode API.
  • Improve the usability of the snippets.useWorkspaceFolder option.
  • Refresh snippets across multiple open workspaces more efficiently.
  • Add GitHub actions to automate code analysis.

The Visual Studio Code Marketplace item for the project shows it is approaching 9,000 installs, with an average rating of 3.7 (scale of 5) from six users who rated it.

Although the snippets tool is probably the most interesting for Visual Studio Magazine readers (as well as the Material Design icons listed below), other open source projects reaching GA status last month highlighted by GitHub include:

  • 6.5.95 Material Design Icons
  • Hardware for MkDocs 8.0
  • PHP 8.1
  • PHPStan 1.0
  • PyGame 2.0.3
  • Respond 18.0
  • Luciferin 2.0

“We hope these releases inspire you to get involved in open source or update your latest project. If you are working on an open source project and are shipping a major release soon, please contact us. You can now check out our new Release Radar and submit your project to be featured on our blog. Also, don’t forget our new feature to automatically generate release notes so that you can create all of your release notes for you. ”

About the Author

David Ramel is editor and writer for Converge360.


Comments are closed.