Python IDLE add line number display tutorial

1、 Download LineNumber.py

http://idlex.sourceforge.net/extensions.html

2、 Configuration method

(1) First download the LineNumber.py file. Then put the file in the idlelib directory under the python installation directory

(2) Then use a text editor to open the config-extensions.def file in the idlelib directory. Write the following configuration parameters to the file:

[ LineNumbers]
enable=1
enable_editor=1
enable_shell=0
visible=1

Save this file again and reopen idle

Supplementary knowledge: How to display line number in PyCharm (2018.2.4 version)

PyCharm has many tutorials for displaying line numbers, but with the version update, the position of the button will change. The latest version (2018.11.12) is Version 2018.2.4. After searching for a long time, I finally saw it:

File– Settings– Editor– General– Appearance– Show Line numbers

The above python IDLE adding line number display tutorial is all the content shared by the editor, I hope to give you a reference.

Recommended Posts

Python IDLE add line number display tutorial
Python2.7 [Installation Tutorial]
python array add array_Python add array