![]() Group – there are different available groups including F#, Python and Razor. In this example it is cw (Console.WriteLine). Shortcut – is the shortcut we have to type in order to generate the code from the template. ![]() Now select the cw code snippet under C# group: ![]() First let’s open the editor by clicking on Visual Studio > Preferences > Text Editor > Code Snippets. Let’s take a look on the cw code snippet. Visual Studio for Mac is shipped with a default code snippets that can be used as a great example. Sounds like we can increase our performance by letting the code snippets generate boring repetitive code for us. In more advanced cases it might be a code snippet to generate a BindableProperty or a simple property in a ViewModel that should notify the binding engine about updates. Thats a pretty simple example, however we pressed only 4 keys instead of 19 (ignoring the autocompletion of IntelliSense). Type cw and double press the Tab key will result in Console.Writeline() Code snippet is a shortcut that can be used to generate a code from a specific template.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |