Some basic settings for Python+pycharm: Installation use, registration code, display line number, font size and shortcut keys, and other common settings

Source: Internet
Author: User

Download and install

software download, software documentation download: http://www.jetbrains.com/pycharm/download/

Such as:

Official website Download: http://www.oschina.net/p/pycharm

In addition I provide network disk download, this version does not need to crack, download installs can use: Http://pan.baidu.com/s/1c2INnRM

Two registration code

Registration code transferred from: http://www.cnblogs.com/zdz8207/p/python_learn_note_18.html

PYCHARM4 Registration Code
Name:newasp
===== LICENSE BEGIN =====
09086-12042010
00001ebwqd8wkmp2fm34z05ixch1ak
Ki0baod8jkiffywp2walwzejiq6aau
Avvpbzhzpovqvdjfhebbvbxw2t1jqi
===== LICENSE END =====

Name:newasp
===== LICENSE BEGIN =====
58877-12042010
00002h9ii68idwfbdjz2urawcsvxfy
!w1wd9cwrdmow2pouec0wbqlamo5px
lq7ce8qmukeyuwy6! Enjywn!2edtio
===== LICENSE END =====

Name:newasp
===== LICENSE BEGIN =====
46753-12042010
000013XJAPHL95OQRCB "Knlsrxfwya
L3ayclcotbvysdtzbbpu5xcb3qujlc
T1ymrb7ync0d15a2cbwxtwxcwcjjep
===== LICENSE END =====

Name:newasp
===== LICENSE BEGIN =====
62458-12042010
00002r53ofrscvqjsi0zdg5e4pmm5z
dbagbxvox! Opwikbqunfkf2zqdgecf
Xrlosbjbep!2jffuydkblmqwpevvb0
===== LICENSE END =====

Three font and line number settings

To modify the code font size: file->setting (Wrench shape icon), find Editor-->colors&fonts--> font

The default schema cannot directly modify the font size, create a new schema, click Save As, and then fill out a name.
Then see size and line spacing two can be modified, respectively, the size of the font and the spacing between the two lines of code.
Then click Apply and OK, so the font is big and looks clear.

Second, set up the console
Before running, we found that the "Run" and "Debug" on the shortcut menu are grayed out and cannot be triggered. Because we need to configure the console first.
Click the black inverted triangle next to run and go to the "Run/debug configurations" configuration screen. (or click Run---Edit configurations also)
In the "Run/debug configurations" Configuration screen, click the green plus sign, create a new configuration item, and select Python.

Set the default Pycharm parser: The operation is as follows:
Python–>preferences–>project Interpreter–>python Interpreter Click on the "+" sign to select the system-installed Python.
It is also possible to search for Project interpreter in setting and go inside.

Pycharm Display the right column method: After the View-->tool Buttons is selected, click on the corresponding button can be out of the project list, file method name, variable names table
Pycharm Display toolbar methods: In View-->toolbar other tool is similar.

Set the IDE skin theme
"Alloy.idea Theme", Theme, Appearance, Appearance&behavior, Settings, File----

Permanently displays "line number" and "White space character"
Appearance, Editor, Settings, File--
--tick "show line Numbers", "Show Whitespaces", "Show method Separators"

To display line numbers temporarily: Right-click on the left margin of the code to select Show Lines Numbers.

Set the Indent Character to tab "tab"
File--Default Settings, Code Style
"Use tab character"
Python---Tick "use tab character"
Other language codes set up similarly

Remove default Folding
Settings->editor, General, Code folding, File------Collapse by default

"Code AutoComplete" time delay setting
Code completion, Editor, File, Settings
-Auto code completion in (MS): 0
Autopopup in (ms): 500

To modify the IDE shortcut key scheme
Keymap, Settings, File--
The system comes with several shortcut key schemes, such as "Defaul" in the drop-down box, "Visual Studio", which is useful when looking for bugs, "NetBeans 6.5", "Default for GNOME" and so on,
Because the eclipse scheme is more popular, the individual uses more, and eventually "Eclipse" is selected.

Four shortcut keys

This section goes from: http://www.cnblogs.com/littleseven/p/5599019.html

Edit class:

Ctrl + Space Basic code completion (classes, methods, properties)
Ctrl + Alt + Space class name complete
Ctrl + Shift + Enter statement completion
Ctrl + P parameter information (call parameters in method)
Ctrl + Q Quick View Document
Shift + F1 External document
About Ctrl + mouse
Ctrl + F1 Displays error descriptions or warning messages
Alt + Insert to generate code automatically
Ctrl + O Re-method
Ctrl + Alt + T selected
Ctrl +/Line Comment
Ctrl + Shift +/Block Comment
Ctrl + W Select the added code block
Ctrl + Shift + W back to Previous state
Ctrl + Shift +/[SELECT code block end, start
Alt + Enter Quick fix
Ctrl + Alt + L code formatting
Ctrl + Alt + O optimize import
Ctrl + Alt + I Auto Indent
Tab/shift + Tab indent, not indent forward
Ctrl+x/shift+delete clipping the current line or selected code block to the Clipboard
Ctrl+c/ctrl+insert Copy the current line or selected code block to the Clipboard
Ctrl+v/shift+insert pasting from the Clipboard
Ctrl + Shift + V paste from the nearest buffer
Ctrl + D to copy the selected range or row
Ctrl + Y Deletes the selected row
Ctrl + Shift + J Add smart Line
Ctrl + Enter Smart wire cut
Shift + Enter Another line
Ctrl + Shift + U toggle between selected areas or blocks of code
Ctrl + DELETE Delete to character end
Ctrl + Backspace Delete to character start
Ctrl + numpad+/-Expand collapsed code block
Ctrl + numpad+ All expand
Ctrl + numpad-All folding
Ctrl + F4 Close the Running tab

Run the class:

Alt + Shift + F10 run mode configuration
Alt + Shift + F9 Debug mode configuration
Shift + F10 Run
Shift + F9 Debugging
Ctrl + Shift + F10 Run editor configuration
Ctrl + Alt + R run manage.py task

Debug class:

F8 Skip
F7 Enter
Shift + F8 Exit
ALT + F9 Running cursors
Alt + F8 Validation expression
Ctrl + Alt + F8 Quick Validation expression
F9 Recovery Program
Ctrl + F8 Breakpoint switch
Ctrl + Shift + F8 View breakpoints

Navigation class:

Ctrl + N jump to Class
Ctrl + Shift + N jump to symbol
Alt + Right/left Jump to the next, previous edit tab
F12 back to the previous tool window
ESC returns to the edit window from the tool window
Shift + ESC To hide a running, recently run window
Ctrl + Shift + F4 Close the active tab
Ctrl + G View current line numbers, character symbols
Ctrl + E Current file Popup
Ctrl+alt+left/right Back and forward
Ctrl+shift+backspace navigating to the most recently edited area
Alt + F1 Find current file or identity
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 Jumps to Parent method, parent class
Alt + Up/down Jump to Previous, next method
Ctrl +/[Jump to code block end, start
Ctrl + F12 Popup file structure
Ctrl + H Type hierarchy
Ctrl + Shift + H method hierarchy
Ctrl + Alt + H Call Hierarchy
F2/shift + F2 Next, previous highlighted error
F4/ctrl + Enter edit resource, view resource
ALT + Home Display navigation bar F11 bookmark switch
Ctrl + Shift + F11 bookmark Mnemonic switch
Ctrl + #[0-9] Jump to an identified bookmark
Shift + F11 Display bookmarks

Find/Replace class:

F3 Next
Shift + F3 Previous
Ctrl + R Replacement
Ctrl + Shift + F Global Lookup
Ctrl + Shift + R global substitution

Search for class:

Alt + F7/ctrl + F7 file query usage
Ctrl + Shift + F7 file usage highlighting
Ctrl + Alt + F7 display usage

Refactoring class:

F5 copy F6 cut
ALT + DELETE Safe Delete
Shift + F6 Rename
Ctrl + F6 Change signature
Ctrl + Alt + N Inline
Ctrl + Alt + M extraction method
Ctrl + Alt + V Extract Properties
Ctrl + Alt + F extract Fields
Ctrl + Alt + C Extract Constants
Ctrl + Alt + p extract Parameters

So so:

ALT + #[0-9] Open the appropriate tool window
Ctrl + Alt + y sync
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 (') Quick switch current plan
Ctrl + Alt + S Open Settings page
Ctrl + Shift + A Find all the actions in the editor
Ctrl + TAB to switch between windows

Some basic settings for Python+pycharm: Installation use, registration code, display line number, font size and shortcut keys, and other common settings

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.