Under PyCharm Mac keyboard shortcuts Daquan! (Remember a few every day)

Mac keyboard shortcuts Daquan under PyCharm

Mac keyboard symbol and modifier keys Description

  • Command
  • Shift
  • Option
  • Control
  • ↩︎ Return/Enter
  • Delete
  • Forward delete key (Fn + Delete)
  • Arrow
  • Down Arrow
  • Left Arrow
  • Right arrow
  • Page Up(Fn+↑)
  • Page Down(Fn+↓)
  • Home Fn + ←
  • End Fn + →
  • A right tab (Tab key)
  • Left Tab (Shift + Tab)
  • Escape (Esc)

Editing (editor)

  • ⌃Space Basic code completion (completion of any class, method, variable)
  • ⌃⇧Space Intelligent code completion (expected filter type list of methods and variables)
  • ⌘⇧↩ Automatic end code, automatically add a semicolon end of the line
  • ⌘P Parameter information display method
  • ⌃J, Mid. button click Quick view documents
  • ⇧F1 View external documents (on some code that will trigger open browser to display related documents)
  • ⌘+鼠标放在代码上 Code display brief information
  • ⌘F1 Displaying detailed description of the error or warning message
  • ⌘N, ⌃↩, ⌃N Generate code (getter, setter, constructor, hashCode / equals, toString)
  • ⌃O The method of covering (override inherited methods)
  • ⌃I Implemented method (interface method implemented)
  • ⌘⌥T Surround code (if..else, try..catch, for, synchronized surrounding the selected code, etc.)
  • ⌘/ Comment / Uncomment the line comment
  • ⌘⌥/ Comment / Uncomment block comments
  • ⌥↑ Continuous selected block
  • ⌥↓ Decreases the current selected block
  • ⌃⇧Q Display contextual information
  • ⌥↩ Display intention quick action and fix the code
  • ⌘⌥L Formatting code
  • ⌃⌥O Optimization of import
  • ⌃⌥I Auto-indenting Line
  • ⇥ / ⇧⇥ Indent your code / anti-indent your code
  • ⌘X Or selected blocks of the current line to the clipboard
  • ⌘C Copy the current line or selected block to the clipboard
  • ⌘V Paste from Clipboard
  • ⌘⇧V Paste from the nearest buffer
  • ⌘D Copy the current line or selected block
  • ⌘⌫ Delete the current line or selected block row
  • ⌃⇧J Intelligent code together into a row
  • ⌘↩ Intelligent split stitching line
  • ⇧↩ Start a new line
  • ⌘⇧U Case conversion
  • ⌘⇧] / ⌘⇧[ Until the end of the block select / start
  • ⌥⌦ Delete the end of the word (⌦ key is Fn + Delete)
  • ⌥⌫ Delete the word to the beginning
  • ⌘+ / ⌘- Expand / collapsing code blocks
  • ⌘⇧+ Therefore expand block
  • ⌘⇧- Folding all code blocks
  • ⌘W Close the active editor tab

Search / Replace (query / replace)

  • Double ⇧ Query anything
  • ⌘F Find the paper
  • ⌘G Find mode, look down
  • ⌘⇧G Find mode, look up
  • ⌘R Replace the paper
  • ⌘⇧F Global Search (the path)
  • ⌘⇧R Alternatively global (the path)
  • ⌘⇧S Query structure (Ultimate Edition version-specific, you need to set in the Keymap)
  • ⌘⇧M Alternatively structure (Ultimate Edition special version, the need to set Keymap)

Usage Search (use the query)

  • ⌥F7 / ⌘F7 Finding usage in the file / find usage in class
  • ⌘⇧F7 Highlighted in the document usage
  • ⌘⌥F7 Display usage

Compile and Run (compile and run)

  • ⌘F9 Compile Project
  • ⌘⇧F9 Compile selected file, package or module
  • ⌃⌥R Run the pop-up menu to select
  • ⌃⌥D Debug the pop-up menu to select
  • ⌃R run
  • ⌃D debugging
  • ⌃⇧R, ⌃⇧D From the editor running context configuration

Debugging (Debugging)

  • F8 The next step, if the current line is a breakpoint method, this method will not enter the body
  • F7 The next step, if the current line is a breakpoint method, this method proceeds in vivo, as well as the method if the method body method will not take place in the embedded
  • ⇧F7 Intelligent entered, there are multiple method calls on the line breakpoint, which will pop into the method
  • ⇧F8 Bounce
  • ⌥F9 Run to Cursor, if there are other pre-cursor will break into the breakpoint
  • ⌥F8 Evaluate expressions (you can change the value to take effect)
  • ⌘⌥R Recovery program is running, the breakpoint in the following code if there is a breakpoint to stop at the next breakpoint
  • ⌘F8 Toggle Breakpoint (if the current cursor line is canceled breakpoint breakpoint, then add no break)
  • ⌘⇧F8 View breakpoint information

Navigation (navigation)

  • ⌘O Find a class file
  • ⌘⇧O Find all types of files, open files, open the directory, open the directory requires a backslash in front of or behind the content input/
  • ⌘⌥O Go to the specified variable / method
  • ⌃← / ⌃→ Left and right to switch between open Edit tab page
  • F12 Return to the previous tool window
  • Code files into the window from the Tools window
  • ⇧⎋ Hide the current or last active window, and the cursor into the code file window
  • ⌘⇧F4 Close the active run / messages / find / ... tab
  • ⌘L Jump to the current file at a specified row
  • ⌘E Display a list of recently opened files record
  • ⌘⌥← / ⌘⌥→ Return / forward to a place of operation on a
  • ⌘⇧⌫ Jump to last edited place
  • ⌥F1 Displays the current target file selection popup layer, there are many targets in the pop-up layer may be selected (e.g., selecting the code editor window displaying the document Finder)
  • ⌘B / ⌘ 鼠标点击 The method defined at an interface or into the cursor / variable
  • ⌘⌥B Jump to realize, the use will jump to the specific implementation of the method name on a call, you can skip the interface
  • ⌥ Space, ⌘Y Quickly open cursor definition method, in class
  • ⌃⇧B Jump to a type declaration at
  • ⌘U A method to get the current cursor parent class / interface definition
  • ⌃↓ / ⌃↑ The cursor jumps to a position before a method name / file after the current
  • ⌘] / ⌘[ Braces move the cursor to the beginning of the current code resides / end position
  • ⌘F12 Pop the current file structure layer, the layer may be directly input on the pop-up filter (search method can be used in class)
  • ⌃H Displays the hierarchy of the current class
  • ⌘⇧H The display method hierarchy
  • ⌃⌥H Call Hierarchy display
  • F2 / ⇧F2 Jump to next / previous error or warning a projecting position
  • F4 / ⌘↓ Edit / View Source Code
  • ⌥ Home To display the navigation bar of the current file
  • F3Select the file / folder / lines of code, add / cancel bookmark
  • ⌥F3 Select the file / folder / lines of code, use the mnemonic Add / Cancel bookmark
  • ⌃0...⌃9 Locating a position corresponding to the bookmark value
  • ⌘F3 Show all bookmarks

Refactoring (reconstruction)

  • F5 Copy the file to a specified directory
  • F6 Move files to the specified directory
  • ⌘⌫ On the file is safe to delete files, the pop-up confirmation box
  • ⇧F6 Rename the file
  • ⌘F6 Change Signature
  • ⌘⌥N consistency
  • ⌘⌥M The code will be selected for the extraction method
  • ⌘⌥V Extracting variables
  • ⌘⌥F Extracting field
  • ⌘⌥C Extraction constants
  • ⌘⌥P Extraction parameters

VCS / Local History (version control / local history)

  • ⌘K Submit code to version control
  • ⌘T Update code from version control
  • ⌥⇧C View recent change history
  • ⌃C Quick pop-up version of the controller operation panel

Live Templates (dynamic code templates)

  • ⌘⌥J Template selection window pops up, the selected code uses dynamic templates wrap
  • ⌘J Insert custom dynamic code templates

General (Universal)

  • ⌘1...⌘9 Open the appropriate number of tool window
  • ⌘S Save all
  • ⌘⌥Y Synchronization, refresh
  • ⌃⌘F Toggle fullscreen
  • ⌘⇧F12 Switching to maximize the Editor
  • ⌥⇧F Add to Favorites
  • ⌥⇧I Check the current file with the current configuration file
  • `§^, ^" quickly switch the current scheme (switch themes, coding style, etc.)
  • ⌘, Open the System Settings IDEA
  • ⌘; Open the project structure dialog
  • ⇧⌘A Find action (can set the related options)
  • ⌃⇥ Switching (during switching if added by the delete, corresponding to the selected window is closed) between the label and the tool window Edit window

Other (official document did not reflect some of the keyboard shortcuts)

  • ⌘⇧8 Vertical edit mode

navigation

  • ⌘O Find a class file Ctrl + N

  • ⌘⌥O Go to the specified variable / method Ctrl + Shift + Alt + N

  • ⌃←/ ⌃→Left and right to switch between open Edit tab page Alt←/Alt→

  • Code files into the window from the Tools window ESC

  • ⌘L Jump to the current file at a specified row Ctrl + G

  • ⌘E Display a list of recently opened files record Ctrl + E

  • ⌘⌥←/ ⌘⌥→Return / forward to operating on a local Ctrl + Alt + ←/Ctrl + Alt + →

  • ⌘⇧⌫ Jump to last edited place

  • ⌃H Displays the hierarchy of the current classCtrl + H

  • ⌘⇧H The display method hierarchy

  • ⌃⌥H Call Hierarchy display

  • F4/ ⌘↓Edit / View Source Code

  • ⌘⌥U FIG display UML class

  • ⌃J View Comments

edit

  • ⌥⌦Delete the end of the word ( the key is Fn+Delete)
  • ⌥⌫ Delete the word to the beginning
  • ⌘+/ ⌘-Expand / Collapse block
  • ⌘F1 Displaying detailed description of the error or warning message
  • ⌘⌥L Formatting code
  • ⌃⌥O Optimization of import
  • ⇧↩ Start a new line
  • ⌘⇧↩ Automatic end code, automatically add a semicolon end of the line
  • ⌃I Implemented method (interface method implemented)
  • ⇧F6 Rename the file or variable
  • ⌘N, ⌃↩, ⌃NGenerating code (getter, setter, constructor, hashCode / equals, toString)
  • ⌘P Parameter information display method

Seek

  • Double⇧ Find anything
  • ⌘⇧F Global Search (the path)
  • ⌘F Find the paper
  • ⌘G Find mode, look down
  • ⌘⇧G Find mode, look up

navigation

  • ⌘⌥B Jump to the implementation of the interface
  • ⌘U View Interface Definition
  • ⌘⌥←/ ⌘⌥→Return / forward to a place of operation
  • ⌘B/ ⌘ 鼠标点击Interface or define the way into cursor / variable
  • ⌃⇧B Jump to a type declaration at
  • ⌥ Space, ⌘YQuickly open cursor method, class definition
  • ⌘O Find a class file
  • ⌘⇧O Find all types of files, open files, open the directory, open the directory need to add content in front of or behind the importation of a backslash /
  • F12 Return to the previous tool window
  • Code files into the window from the Tools window
  • ⇧⎋ Hide the current or last active window, and the cursor into the code file window
  • F3选中文件/文件夹/代码行, Add / cancel bookmark
  • ⌥F3 选中文件/文件夹/代码行Using mnemonic Add / Cancel bookmark
  • ⌃0…⌃9 Locating a position corresponding to the bookmark value
  • ⌘F3 Show all bookmarks
  • ⌥F1 Displays the current target file selection popup layer, there are many targets in the pop-up layer may be selected (e.g., selecting the code editor window displaying the document Finder)
  • ⌘F12 Pop the current file structure layer, the layer may be directly input on the pop-up filter (search method can be used in class)

Common

  • ⌃⌘F Toggle fullscreen

Automatic code

⚠ Note: + Jbrings up all of the completion code provided to, just to name a few commonly used below



Author: God SKY link: https: //www.jianshu.com/p/82cdc0eddb16 Source: Jane books are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.
[Zuòzhě: Shen SKY liànjiē: http: //Www.Jianshu.Com/p/82cdc0eddb16 láiyuán: Jump zhùzuòquán GUI zuòzhě suǒyǒu. Shāngyè zhuǎnzài qǐng lianxun zuòzhě huòdé shòuquán, estimated shāngyè zhuǎnzài qǐng Zhu Ming chuchi.]
Author: God SKY
Link: https: //www.jianshu.com/p/82cdc0eddb16
Source: Jane books
Copyright reserved by the authors. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/sidianok/p/11789959.html