Python-based code editor selection (detailed description)

Source: Internet
Author: User

Python-based code editor selection (detailed description)

The Python development environment has been configured, but it seems that the built-in code editor is a little difficult to use, so let's find a "Easy to use" code editor and search for the information online, commonly used Python editors include the following:

1. Sublime Text
2. Vim
3. PyScripter
4. PyCharm
5. Eclipse with PyDev
6. Emacs
7. Komodo Edit
8. Wing
9. The Eric Python IDE
10. Interactive Editor for Python
11. ulipad
12. Geany
13. IDLE
14. PythonWin
15. SPE
......

During the development process, most people who select the editor hope to have the following functions: syntax highlighting, syntax check, code auto-completion, intelligent sensing of variables/function names, convenient debugging, code folding, and good support for Chinese characters. Through Network materials, it seems that the most recommended by our predecessors is Vim, then as a small white I also silently search Vim: http://www.vim.org/download.php is now Windows system, find PC: MS-DOS and MS-Windows to download the Vim installation file, and then install it, after the installation is complete, configure Vim as the Python IDE and modify the Vim configuration file _ vimrc. After the text is opened, add the following setting command at the end:

Syntax enable
Set colorscheme murphy
Set guifont = Consolas: h12
Set tabstop = 4
Set nu
Set ai
Set si
Set guioptions-= T
Set nobackup
Nmap <F1>: w! <CR> :! Python % <CR>
Cd C: \ Users \ MyTest \ AppData \ Local \ Programs \ Python \ Python36

The details are as follows:

Syntax enable keyword highlighted
Set colorscheme murphy Change Background Color
Set guifont = Consolas: h12 set the font
Set tabstop = 4 a tab key is equivalent to four space keys
Set nu display row number
Set ai auto indent
Set si smart indent
Set guioptions-= T hide Toolbar
Set nobackup does not generate backup files
Nmap <F1>: w! <CR> :! Python % <CR> set the shortcut key for running
Cd C: \ Users \ MyTest \ AppData \ Local \ Programs \ Python \ Python36 set the Python installation path

There are a lot of set commands, so I will not introduce them one by one here. You may search for them online or take a look at the documentation. Some of the information I know here is also collected on the Internet. After the configuration is complete, try the following code ,:

The Vim editor has powerful functions. I am not used to it as a newbie, especially when completing configuration code.YouCompleteMeThe plug-in is even more depressing. The downloaded plug-in cannot be compiled, but it is counted from compiling to giving up. So I downloaded PyCharm again and found the code to run the following results:

I feel pretty good! We recommend entry-level contestants to use PyCharm. Haha! Let's start learning Python ~

The above selection based on the Python code editor (detailed description) is all the content shared by the editor. I hope to give you a reference and support for the help house.

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.