Visual Studio
- Most C# assemblies are named after their namespace name. Ex:
Shaddock.FakeChat - 滚动条的蓝色块是鼠标所在的位置,绿色条是警告的位置
- 名词可以按
TAB补全
Debug
-
Debug ModeRightClick Expression>Add Watch
REPL
View -> Other Windows-> C# Interactive Window
Keyboard Shortcuts
- Build Solution
Ctrl+Shift+B - Compile
Ctrl+F7 - Start F5
- Start Without Debugging
Ctrl+F5 - Restart
Ctrl+Shift+F5 - Run to Cursor
Ctrl+F10 - Step Into
F11 - Step Out
Shift+F11 - Step Over
F10 - Stop Debugging
Shift+F5 - Select All
Ctrl+A - Select Current Word
Ctrl+W - Copy
Ctrl+C - Cut
Ctrl+X - Copy Entire Line
Ctrl+C - Cut Entire Line
Ctrl+X - Paste
Ctrl+V - Undo
Ctrl+Z - Redo
Ctrl+Y - Find
Ctrl+F - Find All References
Shift+F12 - Find In Files
Ctrl+Shift+F - Find Next
F3 - Find Previous
Shift+F3 - Replace
Ctrl+H - Replace in Files
Ctrl+Shift+H - Hold down shift to hightlight everything between the cursor and where the cursor ends up
- Go To End of Document
Ctrl+End - Go To Beginning of Document
Ctrl+Home - Got To Matching Brace
Ctrl+] - Go To Next Word
Ctrl+Right - Go To Previous Word
Ctrl+Left - Go To Line
Ctrl+G - Go To Declaration
Ctrl+F12 - Go To Definition
F12 - Navigate Backwards
Ctrl+- - Navigate Forewards
Ctrl+Shift+- - Next Tab
Ctrl+Alt+Page Down - Previous Tab
Ctrl+Alt+Page Up - Quick Launch
Ctrl+Q - Complete Word
Ctrl+Space - List Members
Ctrl+J - Paremeter Info
Ctrl+Shift+Space - Peek at Definition
Alt+F12 - Quick Info
Ctrl+K, Ctrl+I - Close Popup Window
Esc - Make Lowercase
Ctrl+U - Make Uppercase
Ctrl+Shift+U - Move Selected Lines Up
Alt+Up - Move Selected Lines Down
Alt+Down - Indent
Tab - Unindent
Shift+Tab - Format Document
Ctrl+K, Ctrl+D - Format Selection
Ctrl+K, Ctrl+F - Comment Section
Ctrl+K, Ctrl+C - Uncomment Section
Ctrl+K, Ctrl+U - Rename
Ctrl+R, Ctrl+R - Extract Method
Ctrl+R, Ctrl+M - Remove Parameters
Ctrl+R, Ctrl+V - Reorder Parameters
Ctrl+R, Ctrl+O - Zoom In / Zoom Out
Ctrl+Scroll Wheel