iOS development UI module classification and Mac computer shortcut keys

ios code classification
control classification: Indicator (Activityindicator) AlertView Button (Button) Calendar (Calendar) Camera (Camera) Transparent
Indicator Layer (HUD) Indicator (Aciviy/ndicator yboard) Label) Map ( Map Menu
Navigation Bar Piokeern Progres8 SoroiMiewi Segrmien Slider

Status Bar Switch ) Tab Tab Bar) List Table) Text input box TextField)
Text view TextView) Web page Webview)


Function classification: animation (Animation) audio sound effect (Audio) chart (Chart) game engine (Cocos2d) gravity sensor (CoreMotion)
database (Database) drawing (Drawind) e-book (eBook) gesture interaction (Gesture) guide page (ntro&Guide View)
Networking Popup View Socialization View Effects Niew Effects
View Layout Niew Lavout View Switching View Transition 

Mac keyboard symbols and modifier key descriptions
⌘ 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+↓)
Home Fn + ←
End Fn + →
⇥ Right tab (Tab key)
⇤ Left tab (Shift+Tab)
⎋ Escape (Esc)


Pycharm shortcut keys:
Editing
⌃Space basic code completion (complete any class, method, variable)
⌃⇧Space smart code completion (filter method list and expected type of variable)
⌘⇧↩ Automatically end the code, Automatically add a semicolon at the end of the line
⌘P to display the parameter information of the method
⌃J, Mid. button click to quickly view the document
⇧F1 to view external documents (some codes will trigger the opening of the browser to display related documents)
⌘+mouse over the code to display Code brief information
⌘F1 Display specific description information at errors or warnings
⌘N, ⌃↩, ⌃N Generate code (getter, setter, constructor, hashCode/equals, toString)
⌃O Override method (override parent class method)
⌃ I Implementation method (implement the method in the interface)
⌘⌥T Surround the code (use if..else, try..catch, for, synchronized, etc. to surround the selected code)
⌘/ Comment/uncomment and line comment
⌘⌥/ Comment/ Cancel comments and block comments
⌥↑ Select code blocks continuously
⌥↓ Reduce the currently selected code block
⌃⇧Q Display context information
⌥↩ Display intended actions and quick fix code
⌘⌥L Format code
⌃⌥O Optimize import
⌃⌥I Automatic contraction Enter line
⇥ / ⇧⇥ Indent code / Unindent code
⌘X Cut current line or selected block to clipboard
⌘C Copy the current line or selected block to the clipboard
⌘V Paste from the clipboard
⌘⇧V Paste from the nearest buffer
⌘D Copy the current line or selected block
⌘⌫ Delete the current line or selected block of lines
⌃⇧J Intelligent splicing of code into one
line ⌘↩ Intelligent splitting of spliced ​​lines
⇧↩ Start a new line
⌘⇧U Case switching
⌘⇧] / ⌘⇧[ Select until the end/beginning of the code block
⌥⌦ Delete to word to the end of (⌦ key is Fn+Delete)
⌥⌫ Delete to the beginning of the word
⌘+ / ⌘- Expand/Collapse code block
⌘⇧+ Expand
all code blocks ⌘⇧- Collapse all code blocks
⌘W Close active editor tab
Search/Replace (query/replace)
Double ⇧ Query anything
⌘F Search within the file ⌘G
In search mode, search down
⌘⇧G In search mode, search up
⌘R Replace within the file
⌘⇧F Global search (according to the path)
⌘⇧R global replacement (according to path)
⌘⇧S query structure (exclusive for Ultimate Edition, needs to be set in Keymap)
⌘⇧M replacement structure (exclusive for Ultimate Edition, needs to be set in Keymap)
Usage Search (use query)
⌥ F7 / ⌘F7 Find usage in file / Find usage in class
⌘⇧F7 Highlight usage in file
⌘⌥F7 Show usage
Compile and Run (compile and run)
⌘F9 Compile Project
⌘⇧F9 Compile selected file, package or module
⌃⌥R Pop up Run's selectable menu
⌃⌥D Pop up Debug's optional menu
⌃R Run
⌃D Debugging
⌃⇧R, ⌃⇧D Run context from the editor to configure
Debugging
F8 Go to the next step. If the current line breakpoint is a method, do not enter the current method body.
F7 enters the next step. If the current line breakpoint is a method, it will enter the current method body. If the method body has methods, it will not enter the embedded method. ⇧F7
intelligently steps into the line where the breakpoint is located. Multiple method calls will pop up which method to enter
⇧F8 Jump out
⌥F9 Run to the cursor, if there are other breakpoints before the cursor, it will enter the breakpoint
⌥F8 Calculate the expression (you can change the variable value to make it effective)
⌘⌥R Resume the program running. If there is a breakpoint in the code below the breakpoint, stop at the next breakpoint
⌘F8 to switch the breakpoint (if there is a breakpoint in the current line of the cursor, cancel the breakpoint, if not, add a breakpoint)
⌘⇧F8 View Breakpoint information
Navigation
⌘O Find class files
⌘⇧O Find all types of files, open files, open directories. To open a directory, you need to add a backslash before or after the input content /
⌘⌥O Go to the specified variable / method
⌃← / ⌃→ Switch the open editing tab page left or right
F12 Return to the previous tool window
⎋ Enter the code file window from the tool window
⇧⎋ Hide the current or last active window, and the cursor enters the code file window
⌘⇧F4 Close the active run /messages/find/… tab
⌘L Jump to the specified position of a certain line in the current file
⌘E Display the list of recently opened file records
⌘⌥← / ⌘⌥→ Go back/forward to the previous operation
⌘⇧⌫ Jump Go to the last editing place
⌥F1 to display the current file selection target pop-up layer. There are many targets in the pop-up layer that can be selected (for example, in the code editing window, you can choose to display the Finder of the file) ⌘B / ⌘ Click with the mouse to enter the method where the cursor is
. /The interface or definition of the variable
⌘⌥B jumps to the implementation. If used on a called method name, it will jump to the specific implementation. You can skip the interface
⌥ Space, ⌘Y to quickly open the method or class where the cursor is located. Definition
⌃⇧B Jump to the type declaration
⌘U Go to the method/interface definition of the parent class of the method where the current cursor is located
⌃↓ / ⌃↑ The current cursor jumps to the previous/next method name position in the current file
⌘] / ⌘[ Move the cursor to the start/end position of the curly braces of the current code
⌘F12 Pops up the current file structure layer, you can directly enter and filter on the pop-up layer (can be used to search for methods in the class)
⌃H Display the hierarchical structure of the current class
⌘⇧H shows method hierarchy
⌃⌥H shows call hierarchy
F2 / ⇧F2 Jump to the next/previous location with highlighted errors or warnings
F4 / ⌘↓ Edit/View code source
⌥ Home Display the navigation bar to the current file
F3 Select the file/folder/code line, add/cancel bookmarks
⌥F3 Select the file/folder/code line and use the mnemonic to add/cancel the bookmark
⌃0...⌃9 Locate the bookmark position corresponding to the value
⌘F3 Display all bookmarks
Refactoring
F5 Copy the file to the specified directory
F6 Move the file to the specified directory
⌘⌫ On the file to safely delete the file, a confirmation box pops up
⇧F6 Rename the file
⌘F6 Change the signature
⌘⌥N Consistency
⌘⌥M Extract the selected code into a method
⌘⌥V Extract the variable
⌘⌥F Extract fields
⌘⌥C Extract constants
⌘⌥P Extract parameters
VCS/Local History (version control/local history)
⌘K Submit code to version controller
⌘T Update code from version controller
⌥⇧C View recent change records
⌃C Quickly pop up the version controller operation panel
Live Templates (dynamic code templates)
⌘⌥J Pop up the template selection window, wrap the selected code with a dynamic template
⌘J Insert a custom dynamic code template
General (general)
⌘1...⌘ 9 Open the corresponding numbered tool window
⌘S Save all
⌘⌥Y Sync, refresh
⌃⌘F Switch full screen mode
⌘⇧F12 Switch maximized editor
⌥⇧F Add to favorites
⌥⇧I Check current file and current profile
`§⌃, ⌃“ Quick switch The current scheme (switching themes, code styles, etc.)
⌘, open the IDEA system settings
⌘; open the project structure dialog box
⇧⌘A search action (relevant options can be set)
⌃⇥ switch between the editing window label and the tool window (if switching Press delete during the process to close the corresponding selected window)
Other (shortcut keys not reflected in some official documents)
⌘⇧8 Vertical editing mode
Navigation
⌘O Find class files Ctrl + N
⌘⌥O Go to the specified variable/ Method Ctrl + Shift + Alt + N

⌃← / ⌃→ Switch the open editing tab page left or right Alt←/Alt→

⎋ Enter the code file window ESC from the tool window
⌘L Jump to the specified position of a certain line in the current file Ctrl + G
⌘E Display the recently opened file record list Ctrl + E
⌘⌥←/ ⌘⌥→Return/Forward to the previous one Where to operate Ctrl + Alt + ←/Ctrl + Alt + →
⌘⇧⌫ Jump to the last edited place
⌃H Display the current class hierarchy Ctrl + H
⌘⇧H Display the method hierarchy
⌃⌥H Display the 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 the word
⌘+ /⌘- Expand/ Fold code block
⌘F1 Display specific description information at errors or warnings
⌘⌥L Format code
⌃⌥O Optimize import
⇧↩ Start a new line
⌘⇧↩ Automatically end the code, automatically add a semicolon at the end of the line
⌃I Implementation method (implementation interface Methods in )
⇧F6 Rename files or variables
⌘N, ⌃↩, ⌃N Generate code (getter, setter, constructor, hashCode/equals, toString)
⌘P Display method parameter information
Find
Double ⇧ Find anything
⌘⇧ F global search (according to path)
⌘F Search within the file
⌘G In search mode, search downwards
⌘⇧G In search mode, search upwards
Navigation
⌘⌥B Jump to the implementation of the interface
⌘U View the interface definition
⌘⌥← /⌘⌥→ Return / Forward to the previous A place of operation
⌘B /⌘ Click the mouse to enter the interface or definition of the method/variable where the cursor is located
⌃⇧B Jump to the type declaration
⌥ Space,⌘Y Quickly open the definition of the method or class where the cursor is
located ⌘O Find the class File
⌘⇧O Find all types of files, open files, open directories. To open a directory, you need to add a backslash before or after the input content /
F12 Return to the previous tool window
⎋ Enter the code file window from the tool window
⇧⎋ Hide the current Or the last active window, and the cursor enters the code file window.
F3 selects the file/folder/code line, and adds/cancels the bookmark.
⌥F3 selects the file/folder/code line, and uses the mnemonic to add/cancel the bookmark.
⌃0…⌃ 9 Locate the bookmark position corresponding to the value
⌘F3 to display all bookmarks
⌥F1 to display the current file selection target pop-up layer. There are many targets in the pop-up layer to select (for example, in the code editing window, you can choose to display the Finder of the file) ⌘F12 to
pop up the current file In the file structure layer, you can directly enter and filter on the pop-up layer (can be used to search for methods in the class) General
⌃⌘F
Switch to full-screen mode
Automatic code
⚠Note: ⌘+J can call up all provided code completion ↩ , here are just a few commonly used ones

Guess you like

Origin blog.csdn.net/qq_37269542/article/details/127650310