PyCharm commonly used shortcuts and some common settings

ReferenceCard.pdf shortcuts can be found in English at PyCharm /opt/pycharm-3.4.1/help catalog description

 

PyCharm Default Keymap

PyCharm3.0 default shortcut (translated)

 

1, editing (Editing)

Ctrl + Space substantially complete code (classes, methods, attributes)

Ctrl + Alt + Space passthrough any class

Ctrl + Shift + Enter to complete the sentence

Ctrl + P parameter information (parameter in the method call)

Ctrl + Q to quickly view documents

Shift + F1 external document

Ctrl + Mouse Introduction

Ctrl + F1 to display an error or warning messages describing

Alt + Insert code is automatically generated

Ctrl + O method again

Ctrl + Alt + T to select

Ctrl + / line comments

Ctrl + Shift + / block comment

Ctrl + W Select the new code block

Ctrl + Shift + W back to the previous state

Ctrl + Shift +] / [the selected code block ends, start

Alt + Enter Quick Fix

Ctrl + Alt + L code formatting

Ctrl + Alt + O optimization introduced

Ctrl + Alt + I auto-indentation

Tab / Shift + Tab to indent, not indent the current line

Ctrl + X / Shift + Delete the current line or a selected block to the clipboard

Ctrl + C / Ctrl + Insert copy the selected code block or the current line to the clipboard

Ctrl + V / Shift + Insert Paste from Clipboard

Ctrl + Shift + V to paste from the nearest buffer

Ctrl + D to copy the selected area or row

Ctrl + Y Delete selected rows

Ctrl + Shift + J to add intelligent line

Ctrl + Enter Smart Wire

Shift + Enter starts a new line

Ctrl + Shift + U between selected areas or blocks of code switching

Ctrl + Delete to delete the character to the end

Ctrl + Backspace to delete the character to start

Ctrl + Numpad +/- expand collapse code blocks

Ctrl + Numpad + Expand All

Ctrl + Numpad- Collapse

Ctrl + F4 to close running tab

 

2, Find / Replace (Search / Replace)

F3 next

Shift + F3 before a

Alternatively Ctrl + R

Ctrl + Shift + F Global Search

Ctrl + Shift + R Global Replace

 

3, run (Running)

Alt + Shift + F10 run mode configuration

Alt + Shift + F9 Debug mode configuration

Shift + F10 run

Shift + F9 debugging

Ctrl + Shift + F10 to run the configuration editor

Ctrl + Alt + R to run manage.py task

 

4, commissioning (Debugging)

Skip F8

F7 Access

Shift + F8 Exit

Alt + F9 to run the cursor

Alt + F8 validation expression

Ctrl + Alt + F8 quickly verify expression

F9 recovery program

Ctrl + F8 point of the switching

Ctrl + Shift + F8 to see the breakpoint

 

5, navigation (Navigation)

Ctrl + N to jump to the class

Ctrl + Shift + N jumps to the symbol

Alt + Right / Left jump to the next, a former editor of the tab

F12 back to the previous tool window

Esc from the tool window back to the editing window

Shift + Esc to hide running, the recent run of window

Ctrl + Shift + F4 close tabs actively running

Ctrl + G to view the current line number, the character number

Ctrl + E eject the current file

Ctrl + Alt + Left / Right Back, Forward

Ctrl + Shift + Backspace to navigate to the nearest editing area

Alt + F1 to find or identify the current file

Ctrl + B / Ctrl + Click Go to Declaration

Ctrl + Alt + B Jump to achieve

Ctrl + Shift + I to view quickly define

Ctrl + Shift + B Jump to the type of declaration

Ctrl + U method to jump to the parent, the parent class

Alt + Up / Down to jump to a next method

Ctrl +] / [jump to the end of the block of code starts

Ctrl + F12 up the file structure

Ctrl + H type hierarchy

Ctrl + Shift + H method hierarchy

Ctrl + Alt + H Call Hierarchy

F2 / Shift + a, a highlight of the error before the next F2

F4 / Ctrl + Enter editing resources, see Resources

Alt + Home bookmark display the navigation bar switch F11

Ctrl + Shift + F11 bookmark mnemonic switch

Ctrl + # [0-9] to jump to a bookmark identified

Shift + F11 Show Bookmarks

 

6, search-related (Usage Search)

Alt + F7 / Ctrl + F7 query file usage

Ctrl + Shift + F7 highlighted file usage

Ctrl + Alt + F7 to display usage

 

7, reconstruction (Refactoring)

F5 Copy F6 Cut

Alt + Delete to delete security

Shift + F6 Rename

Ctrl + F6 to change the signature

Ctrl + Alt + N inline

Ctrl + Alt + M extraction method

Ctrl + Alt + V extract attribute

Ctrl + Alt + F extraction field

Ctrl + Alt + C extraction constants

Ctrl + Alt + P parameter extraction

 

8, the control VCS / Local History

Ctrl + K submitted project

Ctrl + T Update Project

Alt + Shift + C to view recent changes

Alt + BackQuote ( ') VCS eject quickly

 

9, the template (Live Templates)

Ctrl + Alt + J of the current line using template

Ctrl + J Insert template

 

10, the basic (General)

Alt + # [0-9] to open a respective tool window

Ctrl + Alt + Y sync

Ctrl + Shift + F12 to maximize the editing switch

Alt + Shift + F Add to favorite

Alt + Shift + I check the current file according to the configuration

Ctrl + BackQuote ( ') to quickly switch the current plan

Ctrl + Alt + S to open the Settings page

Ctrl + Shift + A to find all the action editor

Ctrl + Tab to switch between windows

 

Some common settings:

 

1. pycharm default is automatically saved, used their own press ctrl + s can be set as follows:

1. file -> Setting -> General -> Synchronization -> Save files on frame deactivation 和 Save files automatically if application is idle for .. sec 的勾去掉

2. file ->Setting -> Editor -> Editor Tabs -> Mark modified tabs with asterisk 打上勾

2. Alt + Enter: automatically add the bag

 

3. For commonly used shortcuts, you can set visual studio (eclipse ...) the same:

file -> Setting -> Keymap -> Keymaps -> vuisual studio -> Apply

 

4. Pycharm default font size can not be changed by the Ctrl + roller may be file -> Setting -> Editor-> Mouse set

 

5. To set the font Pycharm, first in the file -> Setting -> Editor-> Editor, select a style and save before you can change

 

6. In setting the search theme may change the subject, all unified color change

Reprinted from: https://www.cnblogs.com/shizhengwen/p/6631527.html

Published 48 original articles · won praise 121 · views 680 000 +

Guess you like

Origin blog.csdn.net/guoyunfei123/article/details/82698534