Overview Q & A Rating & Review
Makes using code snippets in demos easy.
Do real demos but without having to worry about typing or managing pieces of code to copy in from elsewhere.
This Visual Studio extension provides functionality relating to *.demosnippets files and interacting with the Toolbox.
Features
Store your code snippets in a file with a .demosnippets extension.
Automatically add the contents of all .demosnippets files to the Toolbox when a solution loads. (Can be disabled in Options.)
Automatically remove all demo snippets from the Toolbox when you close the solution. (Can be disabled in Options.)
Add individual files to the Toolbox by right-clicking on the file in Solution Explorer and selecting 'Add to Toolbox' .
Add all files to the Toolbox by right-clicking on the solution in Solution Explorer and selecting 'Add All DemoSnippets to Toolbox' .
Remove all DemoSnippets from the Toolbox by right-clicking on the Toolbox and selecting 'Remove All DemoSnippets' .
Remove any empty tabs from the Toolbox by right-clicking on the Toolbox and selecting 'Remove Empty Tabs' .
Automatically reload Toolbox entries every time you save a .demosnippets file. (Can be disabled in Options.)
Colorization of .demosnippets files.
Create .demosnippets files by selecting File > New Item.
Also works with files named "{anything}.demosnippets.{ext}"
.demosnippets file
Comment lines start with a hash.
Labels (displayed in the toolbox) begin with a hyphen.
The text between labels is included as the contents of the snippet.
Snippets are added to the "Demo" tab. This can be overridden by specifying a tab name in a line starting "Tab:".
More on formatting DemoSnippets files
This extension is the work of a solo developer and is made available for free.
In return, it collects basic anonymous analytics about the use of the extension.
It may periodically include a message in the output window asking you to support the ongoing development and maintenance of this and other extensions by becoming a sponsor.