当前位置:网站首页>Visual studio vs shortcut key usage

Visual studio vs shortcut key usage

2022-06-27 06:49:00 EchoCoder

VS Shortcut key use complete book

Shortcut key

  1. notes :CTRL+K, CTRL+C

  2. uncomment :CTRL+K, CTRL+U

  3. Go back to the previous cursor position :CTRL±

  4. Advance to next cursor position :CTRL+Shift±

  5. Copy the whole line of code : The cursor stops on the line ,CTRL+C, Paste again CTRL+V

  6. Cut the whole line of code : The cursor stops on the line ,CTRL+X

  7. Delete entire line of code : The cursor stops on the line ,CTRL+L

  8. revoke :CTRL+Z

  9. Return cancellation :CTRL+Y

  10. Set breakpoint debugging :F9, Breakpoint line does not execute

  11. debugging ( start-up ):F5

  12. Debug sentence by sentence :F11

  13. Use the scroll bar to preview the entire file : Tools —> Options —> Text editor —> All languages —> Scroll bar —> Thumbnail mode with vertical scroll bar —> wide

  14. Increase Indent :Tab

  15. Reduce indent :Shift+Tab

  16. Insert a line above the line where the cursor is located :CTRL+Enter

  17. Insert a line below the line where the cursor is located :CTRL+Shift+Enter

  18. Jump to definition :F12

  19. Find all references :Shift+F12

  20. lookup :CTRL+F

  21. Replace :CTRL+H

  22. forward / Backward search

    1. Use key combination “Ctrl+I”;
    2. Type text to search ( Move the cursor to the search term input box to start input );
    3. After typing the search text , You can use key combinations “Ctrl+I” And “Ctrl+Shift+I” Forward and backward search results , Search results will be highlighted .
    4. To end a search , Can press “ESC” Key or click the close button on the right side of the search box .
      [ Add ] After selecting a word , Press key “Ctrl+F” You can also call up the search box , And the search results will also be highlighted .
  23. Frame selection
       Use key combination “Shift+Alt+ Direction key ( Or mouse )” To complete the box selection . Box selection allows you to select both lines and columns of code . This is very convenient for batch deletion of some codes .

  24. Navigate to beginning and end of line
    A.home key : Navigate to the beginning of the current row ;
    B.end key : Navigate to the end of the current row .

  25. Select from cursor to beginning of line ( tail ) Code between
    A. Check the code from the beginning of the cursor to the beginning of the line : Use key combination “Shift + Home”;
    B. Check the code from the beginning of the cursor to the end of the line : Use key combination “Shift + End”

  26. Call smart prompt
    A. Method 1: Use key combination “Ctrl+J”;      
    B. Method 2: Use key combination “Alt+→”.

  27. Call parameter information prompt
    For some functions with large function bodies , It's a bit of a hassle to easily confirm the usage of parameters within a function . In this case, you can place the cursor on the parameter name , Press the key combination again “Ctrl+Shif+ Space ”, Where the parameter is used is highlighted .

  28. Fast window switching
    Use key combination “Ctrl+Tab”( It can be opened at this time IDE Navigation , Get an aerial view ).

  29. Quickly hide or show the current snippet
    Use key combination “Ctrl+M,M”( remember : Press two times. M Oh ).

  30. Build solution
    Use key combination “Ctrl+Shift+B”.

  31. Jump to a specified line
    A. Method 1: Composite key “Ctrl+G”;
    B. Method 2: Click the line number in the status bar

  32. Full screen display / Exit full screen
    Use key combination “ SHIFT + ALT + ENTER ”.

  33. toggle case
    A. Turn lowercase : Use key combination “Ctrl+ U”;
    B. Turn capitalization : Use key combination “CTRL + SHIFT + U”.

原网站

版权声明
本文为[EchoCoder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270628522265.html