Search code examples
visual-studio-2010hotkeys

visual studio. Hot key for pasting some specific text


I Find my self using jquery a lot in visual studio for my current project. Is there a way to add a hot key that will paste the guts of a selector on the screen? for example Ctr+shift+J will paste $("#").


Solution

  • Create a snippet:

    Walkthrough: Creating a Code Snippet

    What this will do is when you type a certain word (lets say selector in this case) and then hit the tab button, it will insert your snippet text that you defined.