In Visual Studio, the obvious F5 and Ctrl+S, but also F12 (go to definition) and Ctrl+Shift+F12 (go to next error).
H
Henk Nicolai
@Henk Nicolai
Posts
-
Most Common/Favorite Keyboard Key(s) -
I still think the "var" in C# is a really bad ideaAgreed... So why don't we have some kind of Visual Studio option that does all the type-inference and replaces all those 'var's with actual inferred types? I thought the main purpose of 'var' was to increase productivity... Or, maybe the following syntax should be allowed:
Dictionary<string> myDictionary = new(StringComparer.OrdinalIgnoreCase);
(E.g. no extra type declaration if selecting a constructor from the same class. Not very readable though if you're not used to it.) - DerHenker