Pycharm shortcuts and pycharm shortcuts

Source: Internet
Author: User

[Switch] Some shortcut keys for pycharm and pycharm

I recently learned how to use GA to automate games, and then use pycharm for script editing and debugging. It may be a bit difficult to comment multiple lines and one line during the trial, and then you may wonder if pycharm has a convenient method for commenting multiple lines ..

Then I checked the information on the Internet and read other people's blogs (here I would like to thank my predecessors for sharing:). Then I shamelessly copied the usage of these shortcuts, save a record...

I have to say that some of pycharm's shortcut key functions are still very useful .....

 

 

Editing class:

Ctrl + Space Basic Code Completion (class, method, attribute)
Ctrl + Alt + Space class name complete
Ctrl + Shift + Enter
Ctrl + P parameter information (call parameters in methods)
Ctrl + Q quick document viewing
Shift + F1 external document
Ctrl + mouse Introduction
Ctrl + F1 Display Error description or warning information
Alt + Insert automatically generated code
Ctrl + O retry Method
Ctrl + Alt + T select
Ctrl +/line comment
Ctrl + Shift +/block comment
Ctrl + W select the added code block
Ctrl + Shift + W back to the previous status
Ctrl + Shift +]/[end and start of the selected code block
Alt + Enter quick correction
Ctrl + Alt + L code formatting
Ctrl + Alt + O optimized Import
Ctrl + Alt + I auto indent
Tab/Shift + Tab indent, do not indent the current row
Ctrl + X/Shift + Delete cut the current row or selected code block to the clipboard
Ctrl + C/Ctrl + Insert copy the current row or selected code block to the clipboard
Ctrl + V/Shift + Insert paste from clipboard
Ctrl + Shift + V paste from the nearest Buffer
Ctrl + D copy the selected region or row
Ctrl + Y Delete selected row
Ctrl + Shift + J Add a smart line
Ctrl + Enter smart Wire Cutting
Shift + Enter start another line
Ctrl + Shift + U Switch between the selected region or code block
Ctrl + Delete: Delete to end of character
Ctrl + Backspace Delete to start character
Ctrl + Numpad +/-expand and collapse the code block
Ctrl + Numpad + expand all
Ctrl + Numpad-hide all
Ctrl + F4 close the running tab

Running class:

Alt + Shift + F10 running mode configuration
Alt + Shift + F9 debug mode configuration
Shift + F10 run
Shift + F9 debugging
Ctrl + Shift + F10 run editor configuration
Ctrl + Alt + R run the manage. py task

Debugging class:

F8 skip
Enter F7
Shift + F8 exit
Alt + F9 run cursor
Alt + F8 verification expression
Ctrl + Alt + F8 quick expression Verification
F9 Recovery Program
Ctrl + F8 breakpoint Switch
Ctrl + Shift + F8 view breakpoints

Navigation class:

Ctrl + N jump to class
Ctrl + Shift + N jump to the symbol
Alt + Right/Left jump to the next and previous edited Tab
F12 back to the previous tool window
Esc return to the editing window from the tool window
Shift + Esc hide running and recent running Windows
Ctrl + Shift + F4 close the active running tab
Ctrl + G to view the current row number and symbol
Ctrl + E pop-up of the current file
Ctrl + Alt + Left/Right move backward and forward
Ctrl + Shift + Backspace navigate to the recently edited Area
Alt + F1 find the current file or ID
Ctrl + B/Ctrl + Click jump to Declaration
Ctrl + Alt + B Jump to implementation
Ctrl + Shift + I view quick definitions
Ctrl + Shift + B Jump to type declaration
Ctrl + U jump to parent method and parent class
Alt + Up/Down jump to the previous and next Methods
Ctrl +]/[jump to the end and start of the code block
Ctrl + F12 pop-up file structure
Ctrl + H type hierarchy
Ctrl + Shift + H method hierarchy
Ctrl + Alt + H call hierarchy
F2/Shift + F2 next and previous highlighted errors
F4/Ctrl + Enter edit resources and view resources
Alt + Home display navigation bar F11 bookmarks
Ctrl + Shift + F11 bookmarks
Ctrl + # [0-9] Jump to the tag bookmarks
Shift + F11 show bookmarks

Search/replace class:

Next to F3
Shift + F3 previous
Ctrl + R replace
Ctrl + Shift + F Global Search
Ctrl + Shift + R global replacement

Search Class:

Alt + F7/Ctrl + F7 file query usage
Ctrl + Shift + F7 File Usage highlighted
Ctrl + Alt + F7 display usage

Refactoring class:

F5 copy F6 cut
Alt + Delete secure deletion
Shift + F6 rename
Ctrl + F6 change Signature
Ctrl + Alt + N inline
Ctrl + Alt + M Extraction Method
Ctrl + Alt + V extract attributes
Ctrl + Alt + F field Extraction
Ctrl + Alt + C extract constant
Ctrl + Alt + P extract Parameters

General:

Alt + # [0-9] Open the corresponding tool window
Ctrl + Alt + Y Synchronization
Ctrl + Shift + F12 maximize edit Switch
Alt + Shift + F add to favorite
Alt + Shift + I check the current file according to the configuration
Ctrl + BackQuote (') quickly switch the current plan
Ctrl + Alt + S open the settings page
Ctrl + Shift + A search for all the actions in the editor
Ctrl + Tab switch between windows

Related Article

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.