MacBook using shortcut keys

Function shortcut keys

Using the function keys in combination with other command ⌘ letter keys:

Command + A: Select all.
Command + X: Cut the option and copied to the clipboard.
Command + C: will copy the selected item to the clipboard. The same applies to the file "visit up" in.
Command + V: the contents of the clipboard to the current document or application. The same applies to the file "visit up" in.
Command + Z: undo a command . You can also press Shift + Command + Z to redo, to perform an undo command. In some applications, you can undo and redo multiple commands.
Command + F: Find a presentation of the project or open the "Find" window.
Command + G: Find again: the next location to find the items that appear before the find. To find a location that appears, press Shift + Command + G.

Use pycharm shortcuts when writing code:

I chose the version of Mac OS X, you can also choose other according to their own preferences.

Code Completion tab

Notes command + /

Copy line of code command + d

To delete a line of code command + y

Vertical movement line shift + command + ⬆️⬇️

Cursor to the beginning of the line command + ⬅️

Move the cursor to the end line command + ➡️

Select everything in line before the cursor shift + command + ⬅️

Select a row in the cursor all the contents of shift + command + ➡️

Search for a variable / method / function where used (the statement to jump) command + b

When the rows, directly next line shift + enter

Generating a plurality of cursor shift + alt + mouse movement (ah this really handy!)

Rapid recall preferences command +,

Formatting code alt + command + L key (lowercase) (this is also very good, a key code is written after formatting, do not need to adjust)

Replace a variable name commad + r (replace interface you can choose a replacement, you can replace all occurrences)

View function, where the method was originally created, this method is very easy to use, hold down the command to view the built-in functions and the like, a mouse click functions, methods

When the parameters passed to the function, which parameters need to see the cursor command + p (a very practical approach) when the brackets function

Guess you like

Origin blog.csdn.net/Mr_zhuo_/article/details/91492387