How to display line numbers in eclipse: 1. Directly enter the shortcut key "CTRL F10" and check "show line numbers"; 2. Right-click its sidebar and check "show line numbers"; 3 , just set the displayed line number in the Eclipse menu bar.
The operating environment of this tutorial: Windows 10 system, Eclipse IDE 2020-06 R version, Dell G3 computer.
Recommended: "Programming Video"
eclipse displays line number
一, Shortcut key method
#Open a code page, directly enter the shortcut key CTRL F10, a menu will be called up, check "show line numbers" to display the line number
## 2. Right sidebar method
Open a code page, right-click on its sidebar, as shown in the figure, a menu will be displayed, check "show line numbers" to display the line numbers
3. General setting method
In the Eclipse menu Select "Window"--"Prenference"
##################################################### Window->Preferences->Gerenal->Editors->Text Editors, then check "show line numbers" on the right to display the line numbers~######
The above is the detailed content of How to display line number in eclipse. For more information, please follow other related articles on the PHP Chinese website!