Visual Studio Tips

Update: second post here, third here and fourth here.

Some random tips:

  1. If you need to run a web site under a different domain, so as to test multitenancy, for example, you need to run Visual Studio as an Administrator, otherwise you will get an error about an invalid hostname;
  2. If you want, you can configure Visual Studio to always start as Administrator: set the compatibility options to require additional permissions, see more here;
  3. You can have the Solution Explorer track (select automatically) the file you are editing; just select option Tools - Options - Track Active Item in Projects and Solutions;
  4. In case you need to find some class that you don't know where is located, or you only know a part of its name, use the Edit - Navigate To option or click <Ctrl>+<comma>;
  5. Split the editor window: select Window - Split; to close it, unselect it;
  6. You can now move a window to another monitor;
  7. Select columns across lines: click <Alt> while you make a vertical selection using the mouse or cursor keys; you can then copy the selection or paste some code into it;
  8. With <Alt>+<Up> or <Alt>+<Down>, you can switch the order of lines;
  9. Paste your JSON or XML code as classes: select Edit - Paste Special - Paste JSON as Classes/Paste XML as Classes;
  10. You can see the classes that inherit from some of your project's class: just select the file containing it in Solution Explorer, expand the selection to find the class, and then expand the class; you will find an option Derived Types.

And that's it for now. More will follow!

                             

4 Comments

Add a Comment

As it will appear on the website

Not displayed

Your website