This extension is a collection of functions that makes your presentation more streamlined and easier to watch.
The first function makes it possible to type out a snippet, character by character, by pressing any button.
This is the perfect extension for people showing code on stage, in a classroom, or a workshop.
Steps:
- Select some code
- Right-click and select Create snippet
- Name the snippet
- Now type the name of the snippet in a comment in the code //Snippetname (most comment types work)
- Make sure the cursor is on the same line as the comment
Press CTRL + TAB + TAB
The Extension now takes over, and you can press any button (except TAB) to type one character at a time. - To exit the extension, press TAB.
The snippets are saved in a " Snippets" folder in the solution folder.
In some cases, you need to remap it to make it work.
There are four commands:
StageCoder.Reloadsnippets
If you copy snippets or manipulate them outside the extension, this will reload the snippets.
StageCoder.Replacecode
It will replace the comment with the snippet without typing each character.
StageCoder.Typecode
It will enable you to press any button (except TAB) to type one character at a time taken from the snippet.
StageCoder.ToggleCodeHighlight
It will toggle the code higlight
While presenting, we can also use a Stream Deck by using the "Visual Studio"-plugin by Nicollas R.
Adding the commands above can trigger the different commands by pressing the Stream Deck button.
To configure the type command, do the following:
- Install the Visual Studio plugin from the plugin store.
- Drag Execute Command to a button.
- Add a Title (This can be anything)
- Add a Command(Name) in this case StageCoder.Typecode
- Command args can be used in three ways.
Empty - Will use the current line in Visual Studio to figure out the snippet name.
SnippetName - By supplying it with a snippet name, you can trigger that particular snippet.
[clipboard] - Will take the current text on the clipboard and use that as a snippet.
The second function makes it possible to highlight code by blurring the rest of the code.
This is perfect for focusing on a specific part of the code while presenting.
Almost everytime I use this function, someone comes up to me and asks what I am using.
When toggling the highlighting it will close the currently open file and reopen it.
This does take a couple of seconds to do, but it is worth it.
So my recommendation is to have it running through your whole presentation.
I rarely turn it off, because it helps me to focus as well.