IntelliJ idea for Mac shortcut keys

Source: Internet
Author: User
Tags class definition delete key

Description of Mac keyboard symbols and modifier keys
    • ?Command
    • ?Shift
    • ?Option
    • ?Control
    • ??Return/enter
    • ?Delete
    • ?Forward Delete key (Fn+delete)
    • Up ARROW
    • Down ARROW
    • Left Arrow
    • Right Arrow
    • ?Page Up (fn+↑)
    • ?Page Down (fn+↓)
    • HomeFn +←
    • EndFn +→
    • ?Right tab (Tab key)
    • ?Left tab (SHIFT+TAB)
    • ?Escape (ESC)
First, Editing (edit)
  • ?SpaceBasic code completion (complete any class, method, variable)
  • ??SpaceSmart Code Completion (Filter method list and expected types of variables)
  • ???Auto-end code, automatically add semicolon at end of line
  • ?PDisplay parameter information for a method
  • ?J, Mid. button clickQuickly view documents
  • ?F1View external documents (on some code triggers open browser display related documents)
  • ?+鼠标放在代码上Display Code Summary information
  • ?F1Display specific description information at error or warning
  • ?N, ??, ?NGenerate code (getter, setter, constructor, hashcode/equals,tostring)
  • ?Ooverriding methods (overriding parent class methods)
  • ?IImplementation method (implements the method in the interface)
  • ??TSurround the code (using the IF: else, try: Catch, for, synchronized, etc. surround the selected code)
  • ?/Comment/Uncomment and line comment
  • ??/Commenting/canceling comments and block annotations
  • ?↑Continuous selection of code blocks
  • ?↓Reduce the code block currently selected
  • ??QDisplay contextual information
  • ??Show intent actions and quick fix codes
  • ??LFormatting code
  • ??OOptimize import
  • ??IAuto Indent Line
  • ? / ??Indent code/anti-indent code
  • ?XCuts the current row or selected block to the Clipboard
  • ?CCopy the current line or selected block to the Clipboard
  • ?VPaste from clipboard
  • ??VPaste from the nearest buffer
  • ?DCopy the current row or selected block
  • ??Delete the row of the current row or selected block
  • ??JIntelligently stitching code into a single line
  • ??Smart Split stitching Lines
  • ??Start a new line
  • ??UCase switching
  • ??] / ??[Select until code block ends/starts
  • ??Delete to the end of the word (? Key is Fn+delete)
  • ??Delete to the beginning of a word
  • ?+ / ?-Expand/Collapse Code blocks
  • ??+Expand so the code block
  • ??-Collapse All code blocks
  • ?WClose the Active editor tab
Second, search/replace (query/replace)
    • Double ?Check anything.
    • ?FFind in Files
    • ?GFind mode, look down
    • ??GFind mode, look up
    • ?RIn-file replacement
    • ??FGlobal lookup (depending on path)
    • ??RGlobal substitution (based on path)
    • ??SQuery structure (Ultimate Edition version is dedicated, need to be set in Keymap)
    • ??MReplacement structure (Ultimate Edition version, need to be set in Keymap)
Iii. usage search (using queries)
    • ?F7 / ?F7Find usages in files/find usages in a class
    • ??F7The usage highlighted in the file
    • ??F7Display usage
Iv. Compile and run (compiling and running)
    • ?F9Compiling project
    • ??F9Compiling a selected file, package, or module
    • ??RPop-up Run's selectable menu
    • ??DPop-up Debug selectable menu
    • ?RRun
    • ?DDebugging
    • ??R, ??DTo run the context environment configuration from the editor
Five, debugging (commissioning)
    • F8Enter next, if the current line breakpoint is a method, do not enter the current method body
    • F7In the next step, if the current line breakpoint is a method, enter the current method body, and if the method body has a method, it will not enter the inline method
    • ?F7Smart step in, there are multiple method calls on the line of the breakpoint, which will pop into which method
    • ?F8Jump
    • ?F9Run to the cursor, if there are other breakpoints in front of the cursor to enter the breakpoint
    • ?F8Evaluate an expression (you can change the value of the variable to take effect)
    • ??RThe recovery program runs and stops at the next breakpoint if the code below the breakpoint has a breakpoint
    • ?F8Toggle Breakpoint (If the cursor has a breakpoint at the current line, the breakpoint is canceled and no breakpoint is added)
    • ??F8Viewing breakpoint information
Vi. Navigation (Navigation)
  • ?OFind class file
  • ??OFind all types of files, open files, open directories, open directories you need to add a backslash before or after the input/
  • ??OGo to the specified variable/method
  • ?← / ?→Toggle open Edit Tab left and right
  • F12Go back to the previous tool window
  • ?Enter the code file window from the tool window
  • ??Hides the current or last active window, and the cursor enters the code file window
  • ??F4Close Activity run/messages/find/... tab
  • ?LJumps to a line at the specified point in the current file
  • ?EDisplays a list of recently opened file records
  • ??← / ??→Go back/forward to the last action place
  • ???Jump to the last edit place
  • ?F1Display the current file selection target pop-up layer, there are many targets in the pop-up layer can be selected (such as in the Code editing window can select the Finder to display the file)
  • ?B / ? 鼠标点击Enter the interface or definition of the method/variable where the cursor is located
  • ??BJump to the implementation, use the method name on a call will jump to the specific implementation, you can skip the interface
  • ? Space, ?YQuick Open cursor method, class definition
  • ??BJump to type declaration
  • ?UGo to the method/interface definition of the parent class of the method where the cursor is currently located
  • ?↓ / ?↑The current cursor jumps to the previous/next method name location of the current file
  • ?] / ?[Move the cursor to the start/end position of the curly brace of the current code
  • ?F12pops up the current file structure layer, which can be filtered directly on the popup layer (can be used to search for methods in the class)
  • ?HDisplays the hierarchy of the current class
  • ??HShow method Hierarchies
  • ??HShow Call Hierarchy
  • F2 / ?F2Jump to Next/previous highlight error or warning location
  • F4 / ?↓Edit/View Code source
  • ? HomeDisplay the navigation bar to the current file
  • F3Select File/folder/Line of code, add/Remove bookmarks
  • ?F3Select File/folder/Line of code, use mnemonics to add/Remove bookmarks
  • ?0...?9Position the bookmark location to the corresponding value
  • ?F3Show All bookmarks
Vii. Refactoring (reconstruction)
    • F5Copy files to the specified directory
    • F6Move files to the specified directory
    • ??Delete file on file for safe, popup confirmation box
    • ?F6Renaming files
    • ?F6Change signature
    • ??NConsistency
    • ??MExtract the selected code as a method
    • ??VExtracting variables
    • ??FExtract fields
    • ??CExtracting constants
    • ??PExtracting parameters
Viii. vcs/local History (version control/local record)
    • ?KSubmit code to version controller
    • ?TUpdating code from a version controller
    • ??CView the most recent change history
    • ?CQuick Eject version Controller operator panel
Ix. Live Templates (Dynamic code template)
    • ??JPop-up template selection window, use dynamic template to wrap selected code
    • ?JInserting custom dynamic Code templates
X. General (GM)
    • ?1...?9Open the corresponding numbered tool window
    • ?SSave All
    • ??YSync, Refresh
    • ??FToggle Full Screen mode
    • ??F12Toggle Maximize Editor
    • ??FAdd to Favorites
    • ??ICheck the current file with the current configuration file
    • §?, ?`Quickly switch to Current scheme (toggle theme, code style, etc.)
    • ?,Open Idea System settings
    • ?;Open the Project Structure dialog box
    • ??AFind actions (you can set related options)
    • ??Toggle between the Edit Window label and the tool window (if you press DELETE in the toggle process, the selected window is closed)
Xi. Other (shortcut keys not shown on some official documents)
    • ??8Vertical edit mode

Navigation

? O Find class file Ctrl + N

?? O go to the specified variable/method Ctrl + Shift + Alt + N

←/. → Toggle open edit tab alt←/alt→

? Enter the code file window from the tool window ESC

? L jump to a line at the specified point in the current file Ctrl + G

? E displays a list of recently opened file records Ctrl + E

?? ←/?? → Go back/forward to the last action where Ctrl + alt +←ctrl + Alt +→

??? Jump to the last edit place

? H displays the hierarchy of the current class Ctrl + H

?? H Display Method Hierarchy

?? H Show Call Hierarchy

F4/? ↓ Edit/View Code source

?? U Display Class UML diagram

? J View Comments

Edit

?? Delete to the end of the word (? Key is Fn+delete)
?? Delete to the beginning of a word
? +/?-expand/Collapse code blocks
? F1 displaying specific description information at error or warning
?? L Format Code
?? O Optimize Import
?? Start a new line
??? Auto-end code, automatically add semicolon at end of line
? I Implementation method (implements the method in the interface)
? F6 Renaming files or variables
? N??? N Generate code (getter, setter, constructor, hashcode/equals,tostring)
? P Display parameter information for the method

Find

Double? Find anything.
?? F Global Lookup (depending on path)
? F files found in
? G Find mode, look down
?? G Find mode, look up

Navigation

?? B jump to the implementation of the interface
? U View Interface Definition

?? ←/?? → return/advance to the last action place

? B/? Mouse click to enter the cursor in the method/variable interface or define the location
?? B jump to type declaration

? Space, huh? Y Quick Open cursor method, class definition

? O Find class file
?? O Find all types of files, open files, open directories, open directories need to add a backslash before or after the input

F12 back to the previous tool window
? Enter the code file window from the tool window
?? Hides the current or last active window, and the cursor enters the code file window

F3 Select File/Folder/Line of code, add/Remove bookmarks
? F3 Select File/Folder/Line of code, use mnemonics to add/Remove bookmarks
? 0 ...? 9 position the bookmark to the corresponding value
? F3 Show All bookmarks

? F1 Display the current file selection target pop-up layer, there are many targets in the pop-up layer can be selected (such as in the Code editing window can select the Finder to display the file)

? F12 pops up the current file structure layer and can be filtered directly on the popup layer (can be used to search for methods in the class)

General

?? F Toggle Full Screen mode

IntelliJ idea for Mac shortcut keys

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.