Code Fragments extension for Visual Studio Code
With this extension you can save static code fragments for later use, and easily insert them into source files whenever needed.
It can be specifically useful when doing coding demos during presentations.
After installing the extension, a new section called
CODE FRAGMENTS is added to the Explorer, which shows a list of the previously saved fragments.
You can save a piece of code by selecting it in the editor, and then executing the "Save selection as Code Fragment" from the Command Palette (brought up with
Ctrl+Shift+P) or in the context menu.
Clicking on an existing fragment in the list inserts its content into the editor at the current cursor position.
Saving a selection as a Code Fragment:
Inserting a Code Fragment to the current cursor position:
Add the capability to always ask for the name of the fragment on save (controlled by the
codeFragments.askForNameOnCreate setting) (#5).
Fix a bug causing not being able to save fragments until the Explorer is opened (#4).
Add export/import to Json, and delete all fragments features.
Initial release of Code Fragments.
The icons are licensed under CC 3.0 BY, and made by
Downloaded from www.flaticon.com.