Personal notes on software development.
For Java technologies check my dedicated site

Pages

Auto generation keywords:

  • typing "prop" and then hit tab twice will generate a property template;
  • typing "ctor" and then hit tab twice will generate a constructor template;

Key shortcuts:

  • Auto-complete: Ctrl+Space. Intellisense suggestions may pop up a window if there is more than one possibility.
  • Intellisense suggestions window: Ctrl+Shift+Space to bring it up. When giving parameters for functions, I often need to escape the suggestions window to check another part of code. To bring it back, I used to delete a comma and then type it again; but this is easier.
  • Auto-format selection - Ctrl+K and then Ctrl+F
  • Comment selection - Ctrl+K, Ctrl+C
  • Uncomment selection - Ctrl+K, Ctrl+U

Configurations:

  • Insert quotes ("") values automatically while typing the attrib values [1]:
To set this option select Tools->Options. Check Show all settings. From the left pane select Text Editor -> HTML -> Format and check the insert attribute value quotes when typing checkbox.



  • Typing /// before a method in VWD will fill the comment with:
///<summary>
///summary description
///</summary>
///<remarks>
///This is a test.
///</remarks>

  • Redirect console output to Visual Studio output immediate window (instead of having it opening a system console):
    Right Click your package (not the solution!) choose then in the "Application" tab set the "Output type" to "Windows Application". Note: dont forget to change it back when you finish debugging;

    You may also need to check:Tools / Options / Debugging / General / "Redirect all Output Window text to the Immediate Window"
  • Line numbering
  • Tools|Options|Text Editor|All Languages|General|Line numbers.

Related articles:

[1] - Tips & Tricks for ASP.NET, IIS, and Visual Web Developer
[2] - Tips and Tricks for the Visual Studio .NET IDE

No comments:

Post a Comment