First, install Pycharm, you can refer to this article: Http://www.jianshu.com/p/042324342bf4
1, win10_x64, other win version can also. 2, pycharm version: Professional-2016.2.3. 1, to pycharm official website Download Pycharm installation package.  DOWNLOAD DOWNLOAD2, select Professional Edition download for Windows system. Download Download 3, download the good installation package. Install package Information installation package Information 1, double-click the installation package to install it. Install software Install software 2, custom software Installation path (no Chinese characters in the recommended path). Custom Installation path Custom installation path 3, creating desktop shortcuts and associating *.py files. Create Shortcut Create Shortcut 4, select the Start Menu folder (default), click Install. Select folder Select Folder 5, and wait patiently for installation. Wait for installation Wait for installation 6, the installation is complete, tick run pycharm immediately. Installation Complete Installation Complete 7, choose whether to import the development environment configuration file, we choose not to import. Import profile Import Profile 8, read the agreement and agree (teenager, choose to skip it). Read Agreement Read Protocol 9, select enter Activation code to activate the software (please read the next step to get the activation code). Activate software Activate software 10, software activation method?? 1, recommend the purchase of genuine software. 2, can choose to download the community version, free of.?? 3, Professional version can choose trial, free trial 30 days. 4. Find the Activation Code or license server online. We use the 4th method:?? In the IntelliJ Idea Registration code site, get the activation code, previously allowed to customize the user name, now is no, can only directly get the activation code. Get registration code get registration code Click to get the activation code, the text is all selected by default, right click to select Copy. Copy the Activation code copy the Activation Code 11, paste the activation code into the text box, click OK. Paste Activation code Paste activation Code 12, pycharm Welcome screen. Welcome Interface Welcome Interface 13, select IDE Theme and edit area theme, suggest Darcula theme (warm hint: black is more beneficial to protect eyes OH!!!). Select theme Select Theme 14, as we change the theme, we will prompt you to restart the IDE and select Yes. Restart ide Restart IDE15, select Create New project. Create a new project   Create a new project 16, customize the Project store path, and the IDE will associate the Python interpreter by default. Configuration Items Configuration Item 17, the IDE provides tips that I chose not to show at startup. Turn off tips Turn off tips What's the most common programming? (certainly not the bug), but the code, most people have been using the editor default font, in fact, a set of suitable for their own programming font not only can make the code to see more comfortable, even can improve work efficiency! So how do you choose a programming font? What!!! ?? 1, equal width font. 2, there is identification, that is, 0 and o,1 and l difference. Recommend a programming font hack, enter the hack official website, click Download. download download Select the package download that is appropriate for your Windows system. Select System select System to go to GitHub to download the installer. Download Installer Download the installer to complete the installation package, double-click Install. Install package Install package 1, Show/Hide feature sidebar (lower left corner of software). Features sidebar function Sidebar 2, display the project directory structure. Project directory structure project directory structure 3, configure IDE, follow, enter settings.  SETTINGS SETTINGS4, sets the display line number, displays the white space character. Configure line numbers Configure line numbers 5, set the programming font to hack, and the font size to 15. Set programming fonts Set programming font 6, set console font to hack, and font size to 15. Set Console fonts Set console font 7, modify the template for the new *.py file, add the default interpreter on the first line (easy to run on Linux), add File encoding. Modify template Modify template 8, set Python default interpreter, add additional expansion pack, set default interpreter Set default interpreter 1, Ctrl + Enter: Create a new row below without moving the cursor; 2, Shift + Enter: New line below and move to the beginning of new line, 3, CTRL +/: Comment (uncomment) the selected line, 4, CTRL + ALT + L: Formatting code (conflict with QQ Lock hotkey, close hotkey of QQ); 5, CTRL + Shift + +: expands all code blocks; 6. Ct RL + Shift +-: Shrinks all blocks of code, 7, Ctrl + Alt + I: auto-indent;8, ALT + Enter: Optimize the code, add the package, 9, Ctrl + SHIFT + F: Advanced Find, 10, Alt + SHIFT + Q: Update the code to the remote server; sometimes we need to write code on Windows, run code on Linux, or team work on projects, We need to remotely connect to the Linux server for programming.?? Here I use virtual machine to pretend remote server (awkward), virtual machine IP address: 192.168.10.50, connect server (virtual machine) using Xshell (SSH protocol), connect server (virtual machine) using Pycharm (SFTP protocol). 1. View the virtual machine IP address on the Xshell. View virtual machine IP address View virtual machine IP Address 2, create a project workspace on the virtual machine. Create directory Create directory 3, configure the remote server on Pycharm. configuration configuration4, add a new connection. Add a new connection add a new connection 5, set the connection name and the type of protocol used. Configure connection Configure Connection 6, set host IP address, workspace (previously created), login information. Configuration details Configuration details 7, browse remote servers. Browse remote server Browse remote server 8, create a new file on the server. New file New file 9, writing code. Write code write code 10, click the edit area in the upper right corner to update the code to the server. Update Code update Code 11, set permissions on files, add execute permissions. Set permissions for files Set permissions for files Add Execute permissions Add Execute Permissions 12, execute script files with Xshell. Execute script file Execute script file 1, install JDK development environment Download website: http://www.oracle.com/6b9eaac7-7ad0-4267-9319-e6e15b32c9cf[1] DD697EB7-69EF-4361-9D6A-954CB9816056[1] d8902921-5d36-4c68-adf4-b82b56f1c68c start Installation jdk:d47ed425-94b4-4413-83dd-c62d8081168f[1] Modify the installation directory as follows: 77aa84d8-4f3b-44cd-9461-327a7962286f[2], click Next. Note: When prompted to install the JRE, you can choose not to install. 2, Configuration environment variables: For Java program Development, the main use of the JDK two commands: Javac.exe, Java.exe. Path: C:\Java\jdk 1.7.0 _09\bin. However, because these commands are not part of the Windows own commands, you need to configure the path to use them. Click Computer-Properties-Advanced system settings, click Environment Variables. Click New under the System Variables column to create a new system environment variable. 50AA00DF-6BB9-471C-81A7-363845B6F2B3 (1) New variable name "Java_home", Variable Value "C:\Java\jdk1.8.0_05" (i.e. JDK installation path) (2) Edit- > variable name "Path", at the end of the value of the original variable, add ";%java_home%\bin;%java_home%\jre\bin" (3) New variable name "CLASSPATH", Variable Value ".; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "such as: Java_ The home environment variable operates as follows: 23f073bb-cc49-43c1-8da1-099f9c18dda3[3]01747df9-c309-438d-a6f7-ea68f43c416c[1]3, Confirm that the environment configuration is true: Enter the java,javac,java-version command in the console, and the compiler information for the JDK as shown below, including information such as syntax and parameter options for modifying commands. java command: 3aa10479-a799-4805-b97f-c99c9f4c698c[1]08c7092a-0487-46c1-9d45-024867dfc5e2[4] Javac command: 6fa0a9a4-77f6-413f-bbdc-9f7afe093061[4]java-version command: C458fc01-02e6-4c27-b5bb-3fce15202360[4]4, Verify the first Java program under the console: public class Test {public static void main (string[] args) {Systerm.out.println ("Hello Java");}} Write in Notepad, click "Save", and deposit to C disk.After the root directory, enter the Javac Test.java and Java Test commands to run the program (print out the result "Hello Java"). Note: These two commands are under the D:\java\jdk1.8.0_20\bin directory. Program parsing: First write the Java source Code program, the extension. java; in command-line mode, enter the command: Javac source file name. Java, compile the source code, generate a class bytecode file, if there is no error message after compiling, enter the command: Java HelloWorld, the class bytecode file is interpreted to run without the need to add the. class extension. See: After compiling, if there is no error message, enter the command: Java HelloWorld, the class bytecode file interpretation run, do not need to add the. class extension. See: Note: If you enter the Javac test.java command in cmd, the display ' Javac ' is not an internal or external command because the JDK development environment or environment variable configuration is not installed in advance.
Pycharm installation and use under Windows