Hi folks, is there a handy list of keyboard shortcuts in markup view to auto-generate controls when you type say tb then Tab and you get a textbox etc?
According to your description, Code Snippet is the best way to achieve that. So, I suggest that you can create a new Code Snippet and import it into My Code Snippets folder.
Hi mmacneill,
Thanks for your post!
According to your description, Code Snippet is the best way to achieve that. So, I suggest that you can create a new Code Snippet and import it into My Code Snippets folder.
Based on your requirement, it can be like this:
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>tb</Title>
<Author>MySelf</Author>
<Shortcut>td</Shortcut>
<Description>Markup snippet for a textbox</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Code Language="html"><![CDATA[<textbox>$selected$$end$</textbox>]]></Code>
</Snippet>
</CodeSnippet>
If you type tb in the page and press Tab, it will auto generate
<textbox></textbox>.
Here is a reference below that you can get more information.
yes, code snippets is what i mean but some are already built in to the editor out of the box - so i type tb press tab and it generates the textbox, type req and i get a required field validator, so i was just looking for the list of built-in ones if such
a list exists?
Member
19 Points
89 Posts
List of markup keyboard shortcuts?
Sep 06, 2013 09:31 AM|mmacneill123|LINK
Hi folks, is there a handy list of keyboard shortcuts in markup view to auto-generate controls when you type say tb then Tab and you get a textbox etc?
All-Star
23975 Points
4084 Posts
Microsoft
Re: List of markup keyboard shortcuts?
Sep 08, 2013 09:59 PM|Starain chen - MSFT|LINK
Hi mmacneill,
Thanks for your post!
According to your description, Code Snippet is the best way to achieve that. So, I suggest that you can create a new Code Snippet and import it into My Code Snippets folder.
Based on your requirement, it can be like this:
If you type tb in the page and press Tab, it will auto generate <textbox></textbox>.
Here is a reference below that you can get more information.
#Creating a Code Snippet
http://msdn.microsoft.com/en-us/library/vstudio/ms165394.aspx
Thanks
Best Regards
Member
19 Points
89 Posts
Re: List of markup keyboard shortcuts?
Sep 09, 2013 06:26 AM|mmacneill123|LINK
Hi Starain -
yes, code snippets is what i mean but some are already built in to the editor out of the box - so i type tb press tab and it generates the textbox, type req and i get a required field validator, so i was just looking for the list of built-in ones if such a list exists?
All-Star
23975 Points
4084 Posts
Microsoft
Re: List of markup keyboard shortcuts?
Sep 10, 2013 06:03 AM|Starain chen - MSFT|LINK
Hi mmacneill,
Do you want to list all sinppet that available in current page?
If so, you can use Ctrl+K, Ctrl+X, to access code snippets, then select that you want.
By the way, we can find the location of current snippets in the code Snippets Manager.
Thanks
Best Regards
Member
19 Points
89 Posts
Re: List of markup keyboard shortcuts?
Sep 10, 2013 08:09 AM|mmacneill123|LINK
Thankyou Starain, that is what i am looking for!