= = = "MSDN Official website
Refactoring shortcut keys
Refactoring. Encapsulate Fields |
Ctrl + r,e |
Displays the Encapsulate Fields dialog box, which allows you to create a property from an existing field and update all references to use the new attribute. |
Refactoring. Extraction Interface |
Ctrl + r,i |
Displays the Extract Interface dialog box, which allows you to create a new interface by using a member that derives from an existing class, structure, or interface. |
Refactoring-Methods of extraction |
Ctrl + r,m |
Displays the Extract Method dialog box, which allows you to create a new method from the selected code. |
Refactoring. Promote local variables to parameters |
Ctrl + r,p |
Move a variable from local use to a method, indexer, or constructor parameter and update the call site correctly. For more information, see promoting local variables to parameters. |
Refactoring. Removing parameters |
Ctrl + r,v |
Displays the Remove Parameters dialog box, which removes parameters from a method, indexer, or delegate by changing the declaration at any location of the calling member. For more information, see Removing parameters. |
Refactoring. Renaming |
F2 Or Ctrl + r,r |
Displays the Rename dialog box, which allows you to rename all references to identifiers. |
Refactoring. Rearranging parameters |
Ctrl + r,o |
Displays the Rearrange Parameters dialog box, which allows you to change the order of parameters for methods, indexers, and delegates. |
code snippet shortcut keys
Command name |
Shortcut keys |
Description |
Edit. Insert Code Snippet |
Ctrl + k,x |
Displays the code snippet selector. The selected code snippet is inserted at the cursor. |
Edit. Outer-side code |
Ctrl + k,s |
Displays the code snippet selector. The selected code snippet wraps around the selected text. |
Tools-code Snippets Manager |
Ctrl + K,ctrl + B |
Displays the code Snippet Manager, which you can use to search for snippets and insert them into a file. |
shortcut Keys
Edit. View Blank |
Ctrl + e,s |
Show or hide spaces and tab marks. |
Edit. Format Document |
Ctrl +e,d |
According to the "Tools" | " Option "|" Text Editor "|" Sets the indentation and code formatting specified in the Formatting pane under C # to format the current document. |
Edit. Format Selection |
Ctrl + e,f |
According to the "Tools" | " Option "|" Text Editor "|" Sets the indentation and code formatting specified in the Formatting pane under C # to format the current selection. |
Edit. Cut rows |
Ctrl + L |
Cuts all selected rows to the Clipboard, and if nothing has been selected, cuts the current row to the Clipboard. |
Edit. Delete Rows |
Ctrl + Shift + L |
Deletes all selected rows, or deletes the current row if no row is selected. |
Edit. Note Selection |
Ctrl + e,c |
Inserts//At the beginning of each row of the current row or selection. |
Edit. Remove horizontal whitespace |
Ctrl + e,\ |
Collapses white space in the selection, and deletes the white space adjacent to the cursor if there is no selection. |
other shortcut methods please see below:
Using the Visual C # IDE
Visual C # Default shortcut keys
Visual C # Scenario-> global shortcut keys
Visual C # Scenario-> HTML designer shortcut keys
Visual C # Scenario-> XML designer shortcut keys
Visual C # Scenario-> control action shortcut keys
Visual C # Scenario-> debugging shortcut keys
Visual C # Scenario-> data shortcut keys
Visual C # Scheme-> text navigation shortcut keys
Visual C # Scheme-> text selection shortcut keys
Visual C # Scenario-> text Manipulation shortcut keys
Visual C # Scenario-> window Management shortcut keys
Visual C # Scenario-> integration Help shortcut keys
Visual C # Scenario-> Object Browser shortcut keys
Visual C # Scenarios-> macros shortcut keys
Visual C # Scenario-> tool window shortcut keys
Visual C # Scenario-> project shortcut keys
Visual C # Scenario-> Image editor shortcut keys
Visual C # scenario-> Search and replace shortcut keys
Visual C # Scenario-> refactoring shortcut keys
Visual C # Scenario-> managed Resource Editor shortcut keys
Visual C # Scenario-> code snippet shortcut keys
Visual C # Scenario-> class diagram shortcut keys
Visual C # Scenario-> Bookmarks window shortcut keys
Visual C # Scenarios-> shortcut keys and string edits