Hi, I’m Latiao.
Pycharm installation tutorial, keyboard shortcuts, and common Settings are all in order to help you.
The installation of PyCharm
PyCham installation requirements:
- Microsoft Windows 10, 8 64-bit version
- Minimum 2 GB RAM, recommended 8 GB RAM
- The disk space is 2.5 GB. SSD is recommended
- Minimum 1024×768 screen resolution
- Python 2.7 or Python 3.5 or later
Download PyCharm: Python IDE for Professional Developers by JetBrains
As can be seen from the figure above, there are two versions respectively Professional and Community, and their differences are shown in the following table.
PyCharm Professional (Professional) | PyCharm (Community) | |
---|---|---|
Smart Python editor | support | support |
Graphical debugger | support | support |
Navigation and refactoring | support | support |
Code review | support | support |
VCS support | support | support |
Scientific tools | support | |
Web development | support | |
Python Web framework | support | |
Python Profiler (Performance analysis) | support | |
Remote development capabilities | support | |
Database and SQL support | support |
The community version is free and meets most of your daily development needs
If you download PyCharm Professional, that is Professional. However, there is only a 30-day free trial and you can choose from the following activation methods
- Purchase genuine
- There are also online activation methods
PyCharm download
Just click Download to Download it. Once the download is complete, double-click to open Pycharm-Professional-2020.3.3.exe
Then click Next and remember to select the installation path. It is not recommended to install it on drive C. If your drive C is very, very large, that is fine.
Then click Next and you will see the following interface. It is suggested to check the option indicated by the arrow
The options are translated as follows:
- Create Desktop shortcut: Creates a desktop shortcut
- Update path variable(Restart needed) : Update path variables Add paths to environment variables
- Update context menu: updates notifications
- Py file, double-click to open pycharm
After that, it’s just a matter of Next install. Here is not a screenshot.
After installation, the interface is as follows (the latest version is different from the previous one).
It says reboot. It doesn’t matter if you don’t.
Project
- New Project: Create the Project
- Open: Import and Open the local project,
- Get from VCS: Configure the GitHub/SVN repository address
Customize
This configuration is described in detail in a later document, but this is just an introduction.
- Color theme: Theme style, take my machine as an example, default
Darcula
,Intellij Light
,windows 10 Light
,High contrast
- IDE font: Modify the interface font size, recommended default 12 can be used
- Editor Font: : Controls the code font size and the font size in the output panel
- Adjust …. : Designed for red-green color blind users.
- Keymap: Shortcut key styles, including Windos, EMacs, and Sublime Text
Plugins
Displays installed plug-ins, or you can install them online from this screen.
Learn PyCharm
Official course, those who are good at English can have a look
Know Pycharm
Go to File –> Settings –>
Pycharm Theme site: List of themes – ThemesMap
Select corresponding to their favorite theme download is a compressed package without decompression
Then you Apply – > OK
There is a scroll bar below to adjust the transparency
Note: many people install third-party libraries in CMD but not in PyCharm because of virtual environment problems you need to install them in PyCharmCopy the code
Pycharm
Code editing shortcuts
The serial number | shortcuts | role |
---|---|---|
1 | CTRL+ALT+SPACE | Quickly import any class |
2 | CTRL+SHIFT+ENTER | Code completion |
3 | SHIFT+F1 | View external documents |
4 | CTRL+Q | Find documents quickly |
5 | CTRL+P | Parameter information (parameters called in a method) |
6 | CTRL+MOUSEOVERCODE | The basic information |
7 | CTRL+F1 | Displays an error or warning description |
8 | CTRL+INSERT | The generated code |
9 | CTRL+O | Overloaded methods |
10 | CTRL+ALT+T | The parcel code |
11 | CTRL+/ | Single-line comments |
12 | CTRL+SHIFT+/ | Block comments |
13 | CTRL+W | Step by step selection of code (block) |
14 | CTRL+SHIFT+W | Phase out selection code (block) |
15 | CTRL+SHIFT+[ | Select to the beginning of the code block from the current location |
16 | CTRL+SHIFT+] | Select to the end of the code block from the current location |
17 | ALT+ENTER | Code quick fix |
18 | CTRL+ALT+L | Code format standardization |
19 | CTRL+ALT+O | Optimized import |
20 | CTRL+ALT+I | Automatic indentation |
21 | TAB | The code is indented backwards |
23 | SHIFT+TAB | Unindent the code forward |
24 | CTRL+SHIFT+V | History copy and paste table |
25 | CTRL+D | Copy the current line/block |
26 | CTRL+Y | Deletes the current line/block |
27 | CTRL+SHIFT+J | The code is joined on a single line |
28 | SHIFT+ENTER | Start a new line |
28 | CTRL+SHIFT+U | Letter of |
29 | CTRL+DELETE | Gradually delete backward |
30 | CTRL+BACKSPACE | Progressive delete |
31 | CTRL+NUMPAD+/- | Code block expands/collapses |
32 | CTRL+SHIFT+NUMPAD+ | All code blocks unfold and fold |
33 | CTRL+SHIFT+NUMPAD- | All code blocks collapse |
34 | CTRL+F4 | Close the active edit window |
Search/replace shortcut keys
The serial number | shortcuts | role |
---|---|---|
1 | CTRL+F | To find the |
2 | F3 | Find the next one |
3 | SHIFT+F3 | Find the last one |
4 | CTRL+R | replace |
5 | CTRL+SHIFT+F | Specified path |
6 | CTRL+SHIFT+R | Specify a path to replace |
Pycharm shortcuts to install third-party libraries
Code run shortcuts
Some computers just shift +
The serial number | shortcuts | role |
---|---|---|
1 | ALT+SHIFT+F10 | Select the program file and run the code |
2 | ALT+SHIFT+F9 | Select the program file and debug the code |
3 | SHIFT+F10 | Run the code |
4 | SHIFT+F9 | Debugging code |
5 | CTRL+SHIFT+F10 | Run the program file in the current edit area |
Code debugging shortcuts
The serial number | shortcuts | role |
---|---|---|
1 | F8 | Single step |
2 | F7 | Single step (same as F8 without function) |
3 | SHIFT+F8 | Step out of |
4 | ALT+F9 | Run to the cursor position |
5 | ALT+F8 | Test statements |
6 | F9 | Rerun program |
7 | CTRL+F8 | Toggle breakpoint |
8 | CTRL+F8 | Check the breakpoint |
Apply search shortcuts
The serial number | shortcuts | role |
---|---|---|
1 | ALT+F7 | To find the application |
2 | CTRL+F7 | Find the application in the file |
3 | CTRL+SHIFT+F7 | Highlight the application in the file |
4 | CTRL+ALT+F7 | According to the application |
Code refactoring shortcuts
The serial number | shortcuts | role |
---|---|---|
1 | F5 | Copy the file |
2 | F6 | Move files |
3 | SHIFT+F6 | rename |
4 | ALT+DELETE | Safely delete |
5 | CTRL+F6 | Change function formal parameters |
6 | CTRL+ALT+M | Extract code into functions |
7 | CTRL+ALT+V | Extract code into variables |
8 | CTRL+ALT+C | Extract code as a constant |
9 | CTRL+ALT+F | Extract the code into fields |
10 | CTRL+ALT+P | Extract code as a parameter |
Dynamic module shortcut keys
The serial number | shortcuts | role |
---|---|---|
1 | CTRL+ALT+J | Use dynamic template wrapping |
2 | CTRL+J | Inserting dynamic templates |
Navigation shortcut
The serial number | shortcuts | role |
---|---|---|
1 | CTRL+N | Enter the class |
2 | CTRL+SHIFT+N | Enter the file |
3 | CTRL+ALT+SHIFT+N | Enter the symbol |
4 | CTRL + please please | Go to the previous edit position |
5 | CTRL + – > – > | Go to the next edit position |
6 | CTRL + – > – > | Go to the next edit position |
7 | SHIFT+ESC | Hide the active/Last active window |
8 | CTRL+SHIFT+F4 | Close the active Run/message/find etc window |
9 | CTRL+G | Displays the row and column where the cursor is located |
10 | CTRL+E | The recently opened file is displayed |
11 | CTRL + ALT + please / > please / > | Navigate forward/backward |
12 | CTRL+SHIFT+BACKSPACE | Navigate to the last edit location |
13 | CTRL+B | Jump to the declaration section |
14 | CTRL+CLICK(left mouse button) | Jump to the declaration section |
15 | CTRL+ALT+B | Jump to code implementation |
16 | CTRL+SHIFT+I | Turn on quick definition lookup |
16 | CTRL+SHIFT+B | Jump to type description |
17 | CTRL+U | Jump superclass/method |
18 | CTRL + write write | Jump to the previous method |
19 | CTRL + left left | Jump to the next method |
20 | CTRL+[ | Jump to the beginning of the code block |
21 | CTRL+] | Jump to the end of the code block |
22 | CTRL+F12 | Popup file structure |
23 | CTRL+H | Pop up the class hierarchy |
24 | CTRL+SHIFT+H | Pop up the method hierarchy |
25 | CTRL+ALT+H | Pop up the call hierarchy |
26 | F2/SHIFT+F2 | Next/last mistake |
27 | F4 | View source code |
28 | ALT+HOME | Display navigation bar |
29 | F2/SHIFT+F2 | Next/last mistake |
30 | F11 | Adding bookmarks |
31 | CTRL+F11 | Add number/letter bookmarks |
32 | CTRL+SHIFT+[1-9] | Add digital bookmarks |
33 | SHIFT+F11 | Show bookmarks |
Universal shortcut key
The serial number | shortcuts | role |
---|---|---|
1 | ALT+[0-9] | Open the corresponding tool window |
2 | CTRL+ALT+Y | synchronous |
3 | CTRL+SHIFT+F12 | Maximize editor |
4 | ALT+SHIFT+F | Add to favorites |
5 | ALT+SHIFT+I | Check the current file using the current configuration file |
6 | CTRL+ALT+S | The Settings dialog box quickly appears |
7 | CTRL+SHIFT+A | Find and debug the editor’s functionality |
8 | ALT+TAB | Toggle between TAB and tool Windows |
9 | ctrl + / | Multi-line quick comments |
---|---|---|
10 | Select the code Shift + TAB | Fast indent and retreat |
11 | CTRL+ right mouse button | Go to the internal source file of the function or method |
12 | CTRL+SHIFT+F12 | Maximize editor |
13 | Ctrl + Alt + I auto indent | Automatic indentation |
14 | Shift under the two | You can also search |
15 | Ctrl + R | replace |
16 | CTRL+SHIFT+R | Global replacement |
17 | Many more shortcuts can be seen directly in PyCharm’s help | [Get started |
Industry information: PPT template, resume template, industry classic books PDF can be added. Interview question bank: classic, hot big factory interview questions over the years, continuous update, add access. Learning materials: including Python, crawler, data analysis, algorithms and other learning videos and documents, add access to communication plus group: big guy guide maze, your problems are often encountered, technical mutual assistance exchange.
To receive
\