locked
List of markup keyboard shortcuts? RRS feed

  • Question

  • User-1668220527 posted

    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?Smile

    Friday, September 6, 2013 9:31 AM

Answers

  • User-1454326058 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 10, 2013 6:03 AM

All replies

  • User-1454326058 posted

    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.

    #Creating a Code Snippet

    http://msdn.microsoft.com/en-us/library/vstudio/ms165394.aspx

    Thanks

    Best Regards

    Sunday, September 8, 2013 9:59 PM
  • User-1668220527 posted

    Hi Starain -

    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.

    #Creating a Code Snippet

    http://msdn.microsoft.com/en-us/library/vstudio/ms165394.aspx

    Thanks

    Best Regards

    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?

    Monday, September 9, 2013 6:26 AM
  • User-1454326058 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 10, 2013 6:03 AM
  • User-1668220527 posted

    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

    Thankyou Starain, that is what i am looking for! Smile

    Tuesday, September 10, 2013 8:09 AM