当前位置:网站首页>Idea shortcut keys

Idea shortcut keys

2022-07-04 14:08:00 Please Sit Down

One 、 structure / compile

Ctrl + F9: Build the project

This shortcut key , Equivalent to menu 【Build】—>【Build Project】

Ctrl + Shift + F9: Recompile the current class

This shortcut key , Equivalent to menu 【Build】—>【Recompile ‘class name’】

Two 、 Text editing

Ctrl + X: shear

Cut the selected text , If not selected, the current line will be cut .

Ctrl + C: Copy

Copy the selected text , If not selected, the current line will be copied .

Ctrl + V: Paste

Ctrl + Alt + Shift + V: Paste as plain text

Select the content to paste from the history clipping and pasting version .

Ctrl + Shift + V: Select paste from history

Ctrl + D: Copy line

Copy the line where the cursor is .

Ctrl + Shift + C: Copy file path

Copy the path of the selected file .

Ctrl + Alt + Shift + C: Copy reference

Copy package path , Or the name of the class .

Ctrl + S: Save it all

Ctrl + Z: revoke

Undo the previous operation .

Ctrl + Shift + Z: redo

Restore the previous undo .

Tab: Indent

Shift + Tabl: remove indent

Ctrl + Alt + I: Automatic retraction

Auto indent to normal position .

Shift + Enter: Start a new business

Whether or not the cursor is at the end of the line , Start a new line .

Ctrl + Alt + Enter: Start a new line before the current line

Ctrl + Y: Delete row

Delete current row .

Ctrl + Shift + U: toggle case

Ctrl + Alt + Shift + Insert: Create temporary file

You can create various types of temporary files , The temporary file will not be saved to disk .

Shift + F4: Open... In a new window

Open the current file in a new window .

3、 ... and 、 Cursor operation

Ctrl + Left: Move one word left

Ctrl + Right: Move one word right

Home: Move to the beginning of the line

End: Move to end of line

Ctrl + Shift + M: Move to braces

Press the shortcut key several times , You can switch between the left and right braces .

Ctrl + [: Move to the beginning of the code block

Ctrl + ]: Move to the end of the code block

Alt + Down: Next method

Alt + Up: Previous method

Ctrl + PageUp: Move to the top of the page

Ctrl + PageDown: Move to the bottom of the page

PageUp: Page up

PageDown: Page down

Ctrl + Home: Move to the beginning of the file

Ctrl + End: Move to end of file

Four 、 Text selection

Ctrl + A: Future generations

Shift + Left: Select... To the left

Shift + Right: Select... To the right

Ctrl + Shift + Left: Select a word to the left

Ctrl + Shift + Right: Select a word to the right

Shift + Home: Select left to the beginning of the line

Shift + End: Select right to the end of the line

Shift + Up: Choose up

Shift + Down: Choose down

Ctrl + Shift + [: Select to the beginning of the code block

Ctrl + Shift + ]: Select to the end of the code block

Ctrl + Shift + PageUp: Select to the top of the page

Ctrl + Shift + PageDown: Select to the bottom of the page

Shift + PageUp: Page up and select

Shift + PageDown: Page down and select

Ctrl + Shift + Home: Select the to file switch

Ctrl + Shift + End: Select to end of file

Ctrl + W: Expansion options

Ctrl + Shift + W: Shrink selection

5、 ... and 、 Code folding

Ctrl + NumPad+: Expand code block

Ctrl + NumPad-: Collapse code block

Ctrl + Alt + NumPad+: Recursive expansion

Ctrl + Alt + NumPad-: Recursive folding

Ctrl + Shift + NumPad+: Expand all

Ctrl + Shift + NumPad-: All folding

Ctrl + .: Fold selection

6、 ... and 、 Multiple caret and range selections

Alt + Shift + Click: add to / Delete caret

Alt + Shift + Insert: Toggle column selection mode

double-click Ctrl + Up: Clone the caret up

Press Ctrl Key twice , Then press the up arrow key without releasing .

double-click Ctrl + Down: Clone the caret down

Press Ctrl Key twice , Then press the down arrow key without releasing .

Alt + Shift + G: Add a caret to each row in the selection

Alt + J: Choose where the unit will appear next

Alt + Shift + J: Cancel the last selection

Ctrl + Alt + Shift + J: Select where all appear

Alt + Shift + Middle-Click: Create a rectangular selection

Alt + Click: Drag to create a rectangular selection

Ctrl + Alt + Shift + Click: Drag to create multiple rectangular selections

7、 ... and 、 Auxiliary coding

Alt + Enter: Show suggested actions

This shortcut key is also called “ Wantong shortcut key ”, It will suggest different operations according to different contexts . The following demonstration is just one of them , There are many other uses , You can try .

Ctrl + Space: Code completion

Ctrl + Shift + Space: Type matching code completion

Ctrl + Alt + Space: Second code completion

Ctrl + Shift + Enter: Complete the current statement

Ctrl + Alt + L: formatting code

Ctrl + P: Parameter information reminder

Ctrl + Q: Quick documents

Ctrl + Shift + Up: Move statement up

Ctrl + Shift + Down: Move statement down

Ctrl + Alt + Shift + Left: Move elements to the left

Ctrl + Alt + Shift + Right: Move the element to the right

Alt + Shift + Up: Move queue up

Alt + Shift + Down: Move the queue down

Ctrl + /: Add line comments

Ctrl + Shift + /: Add block comments

Alt + Insert: Production statement

8、 ... and 、 Context navigation

Alt + Down: Jump to the next method

Alt + Up: Jump to the previous method

Ctrl + G: Jump to specified line

Ctrl + Tab: Switch active files

Alt + F1: Select the location of the file

Ctrl + E: Recent documents

Ctrl + Shift + Backspace: Go back to the last edit position

Ctrl + Alt + Left: back off

Ctrl + Alt + Right: Forward

Ctrl + Alt + Down: Next thing

Ctrl + Alt + Up: Last event

Alt + Right: Select the next tab

Alt + Left: Select the next tab

F11: Switch anonymous Bookmarks

Ctrl + Shift + [digit]: Switch bookmarks with numbers

Ctrl + F11: Switch bookmarks using auxiliary characters

Shift + F11: Display all bookmarks

Ctrl + [digit]: Jump to bookmarks with numbers

Alt + 7: Show structure window

Alt + 3: Display the find window

Nine 、 Search operation

double-click Shift: Find all

Ctrl + F: To find the character ( Current file )

F3: Find the next one

Shift + F3: Find the last one

Ctrl + R: Replace character ( Current file )

Ctrl + Shift + F: To find the character ( All the files )

Ctrl + Shift + R: Replace character ( All the files )

Ctrl + F3: Jump to the next position of the word at the cursor

Ctrl + Shift + N: Find the file and jump to

Ctrl + F12: Open the file structure

Ctrl + Alt + Shift + N: Search for symbols ( Variable 、 Such method )

Ctrl + Shift + A: Find action

Ten 、 Symbol navigation

Alt + F7: Find usage

Ctrl + B: Jump to the statement

Ctrl + Shift + B: Jump to the declaration class

Ctrl + Alt + F7: Show usage

Ctrl + U: Jump to super method

Ctrl + Alt + B: Jump to the implementation method

Ctrl + Shift + F7: Highlight the usage in the file

11、 ... and 、 The code analysis

Alt + Enter: Show intention operation

Ctrl + F1: Display error description

F2: The next highlighted error

Shift + F2: The last highlighted error

Ctrl + Alt + Shift + I: Run check by name

Alt + 6: Display the question window

Twelve 、 Operation and commissioning

double-click Ctrl: Run all

Shift + F10: Run context configuration

Alt + Shift + F10: Open the run window

Shift + F9: Debug context configuration

Alt + Shift + F9: Open the debug window

Ctrl + Alt + F5: Attach to process

Ctrl + F2: stop it

F9: Run to the next breakpoint

Ctrl + Shift + F2: Stop the background process

F8: Cross call

Alt + Shift + F8: Force Cross call

F7: Enter call

Shift + F7: Smart entry call

Alt + Shift + F7: Force entry call

Shift + F8: Jump out call

Alt + F9: Run to cursor

Ctrl + Alt + F9: Force to cursor

Alt + F10: Show execution point

Alt + F8: Evaluation expression

Ctrl + Alt + F8: Quickly evaluate expressions

Ctrl + F8: Switch line breakpoints

Ctrl + Alt + Shift + F8: Switch temporary line breakpoints

Ctrl + Shift + F8: View breakpoints

Ctrl + Shift + F8: Edit breakpoint

Alt + 4: Display the run window

Alt + 5: The debug window is displayed

Alt + 8: Display the service window

13、 ... and 、 Code refactoring

Ctrl + Alt + Shift + T: Open the refactoring list

Shift + F6: Modify name

Ctrl + F6: Modify signature

Ctrl + Alt + N: inline

F6: Move

Ctrl + Alt + M: Extraction method

Ctrl + Alt + F: Introduce domain

Ctrl + Alt + P: Introduce parameters

Ctrl + Alt + V: Introduce variables

Alt + Delete: Safe deletion

fourteen 、 overall situation CVS operation

Alt + `: eject CVS window

Ctrl + K: Submit

Ctrl + T: Update project

Ctrl + Alt + Z: Roll back

Ctrl + Shift + K: Pull

Ctrl + Alt + Shift + Down: Next modification

Ctrl + Alt + Shift + Up: Last modification

Alt + 9: The version control window is displayed

Alt + 0: Show the submit window

15、 ... and 、 Difference viewer

F7: The next difference

Shift + F7: The last difference

Ctrl + Alt + R: Accept left

Ctrl + Alt + A: Accept right

Ctrl + Shift + Tab: Select the opposite differences pane

Ctrl + Shift + D: The difference setting window is displayed

sixteen 、 Tool window

Shift + Escape: Hide the active tool window

Ctrl + Shift + F12: Hide all tool windows

F12: Jump to the last tool window

Ctrl + Alt + Shift + Left: Extend window size to the left

Ctrl + Alt + Shift + Right: Extend window size to the right

Ctrl + Alt + Shift + Up: Extend the window size to the top

Ctrl + Alt + Shift + Down: Extend the window size to the bottom

Alt + 1: Show project window

Alt + 2: Show bookmarks window

Alt + 3: Display the find window

Alt + 4: Display the run window

Alt + 5: The debug window is displayed

Alt + 6: Display the question window

Alt + 7: Show structure window

Alt + 8: Display the service window

Alt + 9: The version control window is displayed

Alt + 0: Show the submit window

Alt + F12: Displays the terminal window

原网站

版权声明
本文为[Please Sit Down]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041111009397.html