C # shortcut keys

Source: Internet
Author: User

Shortcut Key    Function

CTRL + SHIFT + B: generate a solution

CTRL + F7: Generate Compilation

CTRL + O: open the file

CTRL + SHIFT + O: Open the project

CTRL + SHIFT + C: Display Class View window

F4: Display attribute window

SHIFT + F4: display the Project Properties window

CTRL + SHIFT + E: displays the resource view

F12: Go to definition

CTRL + F12: Go to Declaration

CTRL + ALT + J: Object browsing

CTRL + ALT + F1: Help directory

CTRL + F1: Dynamic help

F1: Help

SHIFT + F1: current window help

CTRL + ALT + F3: Help-Search

SHIFT + ALT + ENTER: Full Screen Display

CTRL +-: locate backward

CTRL + SHIFT +-: forward positioning

CTRL + F4: Close the document window

CTRL + page down: move the cursor over the window

CTRL + page up: move the cursor to the bottom of the window

CTRL + F6:

CTRL + TAB: Next document window

CTRL + SHIFT + F6:

CTRL + SHIFT + TAB: Previous document window

ALT + F6: next panel window

CTRL + K, CTRL + L: Cancel remark

CTRL + K, CTRL + C: Comment the selected code

CTRL + K, CTRL + U: uncomment the selected code

CTRL + M, CTRL + O: Collapse Code definition

CTRL + M, CTRL + L: Expand the Code definition

CTRL + DELETE: DELETE to the end of the word

CTRL + BACKSPACE: Delete to word Header

SHIFT + TAB: cancel the TAB

CTRL + U: lowercase

CTRL + SHIFT + U: Convert to uppercase

CTRL + SHIFT + END: select to END of the document

CTRL + SHIFT + HOME: select to start at the end of the document

SHIFT + END: select to the END of the row

SHIFT + HOME: select to the beginning of the line

SHIFT + ALT + END: vertical selection to the END

SHIFT + ALT + HOME: vertical to the top

CTRL + A: select all

CTRL + W: select the current word

CTRL + SHIFT + page up: select to the front of this PAGE

CTRL + SHIFT + page down: Select after this PAGE

CTRL + END: locate the document to the END

CTRL + HOME: locate the document to the beginning

CTRL + G: go...

CTRL + K, CTRL + P: Previous tag

CTRL + K, CTRL + N: Next tag

ALT + F10: Debug-ApplyCodeChanges

CTRL + ALT + Break: Stop debugging

CTRL + SHIFT + F9: cancel all breakpoints

CTRL + F9: interrupt allowed

CTRL + SHIFT + F5: Debug-start again

F5: Run debugging

CTRL + F5: run without debugging

F10: Cross-Program Execution

F11: One-step execution

CTRL + J: List Members

CTRL + page down: Next View

CTRL + B: format-bold

CTRL + SHIFT + T: format-text indent

 

Debugging shortcuts

 

F6: generate a solution

Ctrl + F6: generate the current project

F7: view code

Shift + F7: view the Form Designer

F5: start debugging

Ctrl + F5: start execution (not debugging)

Shift + F5: Stop debugging

Ctrl + Shift + F5: restart debugging

F9: breakpoint Switching

Ctrl + F9: Enable/stop a breakpoint

Ctrl + Shift + F9: delete all breakpoints

F10: Process by Process

Ctrl + F10: run at the cursor

F11: statement by statement

 

 

Edit shortcuts

 

Shift + Alt + Enter: Switch to full screen editing

Ctrl + B, T/Ctrl + K, K: Switch the bookmarks

Ctrl + B, N/Ctrl + K, N: Move to the next bookmarks

Ctrl + B, P: Move to the previous bookmarks

Ctrl + B, C: Clear all labels

Ctrl + I: Progressive search

Ctrl + Shift + I: reverse progressive search

Ctrl + F: Search

Ctrl + Shift + F: find in the file

F3: Find the next

Shift + F3: Find the previous one

Ctrl + H: replace

Ctrl + Shift + H: Replace in the file

Alt + F12: Search symbols (list all search results)

Ctrl + Shift + V: clipboard Loop

Ctrl + left and right arrow keys: One word can be moved at a time

Ctrl + up and down arrow keys: Scroll the code screen without moving the cursor position.

Ctrl + Shift + L: Delete the current row

Ctrl + M, M: Hide or expand the current nested folding status

Ctrl + M, L: Set all processes to the same hidden or expanded State

Ctrl + M, P: Stop outline display

Ctrl + E, S: View Blank

Ctrl + E, W: automatic line feed

Ctrl + G: Go to the specified row

Shift + Alt + Arrow: Select rectangular text

Alt + mouse left button: Select rectangular text

Ctrl + Shift + U: all are capitalized

Ctrl + U: lowercase for all

 

Code shortcut

 

Ctrl + J/Ctrl + K, L: List Members

Ctrl + Shift + Space key/Ctrl + K, P: parameter information

Ctrl + K, I: quick information

Ctrl + E, C/Ctrl + K, C: Comment the selected content

Ctrl + E, U/Ctrl + K, U: cancel the selected comment content

Ctrl + K, M: Generate method stubs

Ctrl + K, X: insert code segment

Ctrl + K, S: insert external code

F12: Go to the definition of the called process or variable

 

Window shortcut

 

Ctrl + W, W: browser window

Ctrl + W, S: solution Manager

Ctrl + W, C: Class View

Ctrl + W, E: Error List

Ctrl + W, O: Output View

Ctrl + W, P: attribute window

Ctrl + W, T: task list

Ctrl + W, X: toolbox

Ctrl + W, B: Bookmarks window

Ctrl + W, U: document outline

Ctrl + D, B: breakpoint window

Ctrl + D, I: Real-Time Window

Ctrl + Tab: active form Switching

Ctrl + Shift + N: Create a project

Ctrl + Shift + O: Open the project

Ctrl + Shift + S: Save all

Shift + Alt + C: Create a class

Ctrl + Shift + A: new item

 

 

Hide shortcut keys in VS2005

Ctrl + Space: directly complete the class or function (originally this is not a hidden shortcut key, but because the Chinese Input Method preemptible this shortcut key, so..., the alternative shortcut key is Alt + Right)

Shift + Delete: Delete the entire row and place the row to the clipboard (you cannot select a part of content at this time)

Shift + Insert: paste. It's a bit incredible. Ctrl + V is enough, probably to correspond to Shift + Delete.

Ctrl + Up, Ctrl + Down: Scroll editor, but try not to move the cursor, the cursor should be within the visible range

Ctrl + BackSpace, Ctrl + Delete: Delete the entire word, sometimes useful

Ctrl + Left, Ctrl + Right: move the cursor by the entire word (not hidden, and add up to the previous items as the Ctrl cursor control suite)

Alt + Shift + F10: Open the execution Rename and implement the small window of the interface and abstract class (you can also use Ctrl + .., but some Chinese input methods use this)

Shift + F9: Debug is to open QuickWatch, the content is the content at the current cursor

F12: Jump to definition, very useful shortcut key

Shift + F12: Find all references

Ctrl + F10 = F5: Start Debug

Ctrl + F6: Check the code window cyclically. It feels like Ctrl + Tab.

Ctrl + F3: Search for the content selected by the current cursor. It can be used with F3.

Ctrl + F2: Move focus to the class drop-down box

Alt + F7 = Ctrl + Tab

Alt + F11: Open VS2005 and edit macro

Alt + F12: Search = Ctrl + F

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.