1.
1. Basic hotkey
-
F5, Ctrl
+ F5, Shift + F5: Debug, without debug,
-
F12: Go
to definition/implementation
-
Ctrl + E + Ctrl + D: Format Document
-
Ctrl + E
+ Ctrl + F : Format Selection
-
Ctrl + E
+ Ctrl + C: Comment Selection
-
Ctrl + E
+ Ctrl + U: Uncomment Selection
-
Ctrl + U:
Make lowercase
-
Ctrl +
Shift + U: Make Uppercase
-
F9: Toggle
Breakpoint
-
Ctrl + F10/F10/F11/Shift + F11: Run To Cursor/Step
Over/Step Into/Step Out
2.
2. Snippet (Ctrl
+ K + Ctrl + X : view list of snippet)
Use: enter code snippet, tab twice to insert this.
Some snippet used:
-
cw: Console.WriteLine()
-
ctor:
Contructor.
-
prop:
Implement property
-
propfull:
Property and backing field
-
for: “for”
loop
-
forr:
Revert “for” loop
-
foreach:
Foreach statement
-
svm:
static void Main()
-
sim:
static in Main()
-
#if/#region:
-
while/do/if/else/switch/namsespace/class/struct/interface/delegate/enum/try/tryf:
3.
3. Other
-
Select block: Shift + drag mouse
-
Paste JSON/XML As Classes: Edit > Paste
Special > Paste JSON/XML As Classes.
0 nhận xét:
Đăng nhận xét