Python IDE Editor: Pycharm

Source: Internet
Author: User
Tags month name python script

Python IDE Editor: Pycharm

Pycharm is a Python integrated development environment (IDE) developed by JetBrains, which supports debugging, syntax highlighting, project management, code jumps, auto-completion, unit testing, versioning, and other common functions.

A Installation of Pycharm

Pycharm is a Python integrated development environment (IDE) developed by JetBrains, which supports debugging, syntax highlighting, project management, code jumps, auto-completion, unit testing, versioning, and other common functions.

1. Download from my Web drive, double click to install

Link: Https://pan.baidu.com/s/1BCzQm6uAfv2hDa2YwVG_qA Password: Z3yk

Always click Next to finish.

2. Install complete and then register

two. configuration of the Pycharm

Configuration entry for Pycharm:file->settings->

1. Set "show line number" file->settings->editor->general->appearance-> tick show lines Numbers, click OK

or right-click on show Line Numbers in the right-hand area of the editor

2. Modify the font size

Click the Settings button on the toolbar or settings from file-.

Editor-"Colors & Fonts-" Font, Scheme name can not be modified by default, you need to click Save as after the size of the change, after the change, click Apply to save.

3. Setting the encoding format

File->settings->editor->file Encodings

4. Templates settings

File->settings->editor->file and Code Templates->python Script

The first set of settings:

Add the following content:

such as author and creation time

__author__ = ' $USER '

The second set of settings:

File-settings-editor-file Code Templates Configuration Python script template file;

about Templates Some parameter variables are detailed:

${project_name}-The NAME of the current PROJECT.

${name}-The NAME of the new file which you specify in the new File dialog box during the file creation.

${user}-The login name of the current USER.

${date}-the current system DATE.

${time}-the current system time.

${year}-the current year.

${month}-the current MONTH.

${day}-The current day of the month.

${hour}-the current HOUR.

${minute}-the current MINUTE.

${product_name}-The NAME of the IDE in which the file would be created.

${month_name_short}-The first 3 letters of the MONTH NAME. Example:jan, Feb, etc.

${month_name_full}-Full NAME of a MONTH. Example:january, February, etc.

Configuration instance:

three. use of pycharm

1. New Project

File->new project->

Location: Select a directory for the project

Interpreter: Choose the version of the Python script that runs

2. Running the program

Method One:

Right-click Run

Method Two:

Shortcut key: SHIFT+F10

Method Three:

Click the Run button on the toolbar

3. Full line replication

Four. Pychram common shortcut keys

Alt+ctrl+s # Open the Settings screen

TAB # Select the code to indent, press to indent

Shift+tab # Select the code you want to indent, press the key to increase

Ctrl+d # Copy Bank paste to next line

CTRL +? #选择要添加注释的行, press the key to add or remove

Double-press Shift #全局搜索

ctrl+/#注释

Ctrl+f #查找

Ctrl+r #查找替换

SHIFT+F10 #运行

Python IDE Editor: Pycharm

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.