PyCharm installation and use, PyCharm Installation and Use

Source: Internet
Author: User

PyCharm installation and use, PyCharm Installation and Use

Build Environment

1. win10_X64. Other Win versions are also supported.
2. PyCharm version: Professional-2016.2.3.

Preparation

1. Download from the PyCharm official website.PyCharmInstallation Package.

2. Select Windows Professional Edition for download.

Install software

1. Double-click the installation package.Install.

2,CustomSoftware installation path (it is recommended that the path contain no Chinese characters ).

3,CreateThe desktop shortcut is associated with the *. py file.

4. SelectStartMenu folder (default), click Install.

5,PatienceWait for installation.

6. After installation is complete, check "Run now ".PyCharm.

7. Select whether to import the development environment configuration file.Do not import.

 

8. Read and agree to the agreement.

9. Modify the hosts file:C:\Windows\System32\drivers\etc\hosts;

0.0.0.0 account.jetbrains.com

10. Select InputActivation codeActivate software (please refer to the next stepGet activation code).

11. Software activation Methods
Recommendation Engine 1. Recommendation Buy genuine software.
Community 2. You can download the Community version for free.
Optional versions 3. You can select a free trial for 30 days.
Http:4. Search for an activation code or an authorization server online.
We use 4th methods:
Zookeeper obtained the activation code on the IntelliJ IDEA registration code website. Previously, the user name was allowed to be customized. NoYou can only obtain the activation code directly.

ClickGet activation codeBy default, all texts are selected.Right-clickSelectCopyYou can.

12. Activate the codePasteTo the text box, clickOKYou can.

13,PyCharmWelcome Page.

14. Select the IDE topic and editing area topic. We recommend that you use the Darcula topic (Tip: Black is more conducive to protecting your eyes !!!).

15. We will promptRestart IDESelect Yes.

16. Select to create a new project.

17. Customize the Project Storage path. The IDE will be associated by default.Python Interpreter.

18. Provided by IDEPrompt, I selectNo prompt is displayed at startup.

Programming font

What is the most common programming? (Certainly notBug),CodeMost people always use the default font of the editor. In fact, changing a set of programming fonts not only makes the code more comfortable, but also improves work efficiency!
So how do I select a programming font?What !!!
Same aspect 1, equal width font.
  2. There is a degree of recognition, that is, the difference between 0 and O, 1 and l.
A programming font is recommended.HackTo go to the Hack official website and click Download.

Select a software package suitable for Windows.

Go to GitHub to download the installer.

Double-click the downloaded installation package.

Configure IDE

1,Show/hideFunction sidebar (SoftwareLower left corner).

2. display the project directory structure.

3. Configure the IDE, follow, and enterSettings.

4. Set the display line number to display blank characters.

5. Set the programming font to Hack and the font size to 15.

6. Set the console font to Hack and the font size to 15.

7. Modify the template for creating the *. py file, add the default interpreter in the first line (to facilitate running in Linux), and add the file encoding.

8. Set the Python default interpreter and add additional extension packages,

Common shortcut keys

1. Ctrl + Enter: Click the New Construction Bank but do not move the cursor;
2. Shift + Enter: Move the New Construction Bank to the beginning of the new line;
3. Ctrl +/: Comment (uncomment) the row selected;
4. Ctrl + Alt + L: format the code (in conflict with the QQ lock hotkey, and disable the QQ hotkey );
5. Ctrl + Shift ++: Expand All the code blocks;
6. Ctrl + Shift +-: contract all the code blocks;
7. Ctrl + Alt + I: automatically scale down;
8. Alt + Enter: optimize the code and add a package;
9. Ctrl + Shift + F: advanced search;
10. Alt + Shift + Q: update the code to the remote server;

Remote connection Programming

Sometimes we need to write code on Windows, run the code in Linux, or work with a team to develop a project, we need to remotely connect to the Linux server for programming.
Zookeeper here I use a virtual machinePretendRemote Server (), virtual machine IP Address: 192.168.10.50, use XShell (ssh protocol) to connect to the server (Virtual Machine), and use PyCharm (sftp protocol) to connect to the server (Virtual Machine ).
1. view the Virtual Machine IP address on XShell.

2. Create a project workspace on a virtual machine.

3. Configure the remote server on PyCharm.

4. Add a new connection.

5. Set the connection name and the protocol type used.

6. Set the Host IP address, workspace (previously created), and logon information.

7. Browse the remote server.

8. Create a file on the server.

9. write the code.

10. Click the editing area.Upper right cornerUpdate the code to the server.

11. Set file permissions and add execution permissions.

12. Run the script file using XShell.

OK! End
(Note: This article is from: http://www.jianshu.com/p/042324342bf4ben_wang yuxiao)

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.