First question is: - I have a sql well-formatted string and I want to paste it in a c# file in web dev. express. I do not remember how I can let the IDE to automatically add "" + for the string I paste.
Do you know how?
Second one: - when I navigate from a class to another in the tabs I want that class to automatically be selected on the right side in开发者_StackOverflow Solution Explorer. Do you know how?
Thanks in advance.
You can create a multiline string literal instead.
string multiLine = @"line1
line2
line3";
Note that line2 and 3 has no indentation.
For the navigation part:
Tools -> Options: Projects and Solutions –> General –> Track Active Item in Solution Explorer
(from 101 Visual Studio tips).
精彩评论