06.44 JavaScript Code Snippets

DEFAULT

Ctrl+K, Ctrl+B

VISUAL BASIC 6

Ctrl+K, Ctrl+B

VISUAL C# 2005

Ctrl+K, Ctrl+B

VISUAL C++ 2

[no shortcut]

VISUAL C++ 6

Ctrl+K, Ctrl+B

VISUAL STUDIO 6

Ctrl+K, Ctrl+B

WINDOWS

Alt,E, I, I

MENU

Edit | IntelliSense | Insert Snippet

COMMAND

Edit.InsertSnippet

VERSIONS

2010

CODE

vstipEdit19

Want to get that JavaScript code created more quickly? Use JavaScript snippets.

When you are inside any script block, go to Edit | IntelliSense | Insert Snippet on the menu bar (Ctrl+K, Ctrl+X), choose the JScript category, as shown in the following illustration, and then press Tab.

image with no caption

Now pick what you want to do, and then press Tab again.

Now fill ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.