Window → Preferences → General → Editors → Text Editors → Show line numbers.
Edit: I wrote this long ago but as @ArtOfWarfar and @voidstate mentioned you can now simply:
Right click the gutter and select “Show Line Numbers”:
More Related Contents:
- Eclipse fonts and background color
- Running Maven project on Tomcat from Eclipse
- How to share Eclipse configuration over different workspaces
- How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds
- Importing Maven project into Eclipse
- Egit in eclipse missing tree
- Eclipse CDT indexer does not know C++11 containers
- What to do about Eclipse’s “No repository found containing: …” error messages?
- Function of Project > Clean in Eclipse
- Maven2: Missing artifact but jars are in place
- Unable to read repository at http://download.eclipse.org/releases/indigo
- How do I change Eclipse to use spaces instead of tabs?
- How does this Color marker happen in eclipse IDE ,and what should I do to clear the Color marker
- Method must have signature “String method() …[etc]…” but has signature “void method()”
- Failed to resolve version for org.apache.maven.archetypes
- Neon: how to run on jdk9?
- How to enable C++11 in Eclipse Juno/Kepler/Luna CDT?
- Increase JVM max heap size for Eclipse
- How to use JavaFX Preloader with stand-alone application in Eclipse?
- How to provide a custom component in the existing Web page Editor Palette
- Does a “Find in project…” feature exist in Eclipse IDE?
- Warnings of valid HTML5 attributes in Eclipse
- Eclipse is not starting on Windows 7
- App can’t be opened because it is from an unidentified developer
- /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9′ not found
- very small fonts and icons on 4k screens
- NoClassDefFoundError in Eclipse when adding project in build path
- Ctrl-Space in Eclipse without Pressing Ctrl-Space
- How to run a batch script (.bat file) from eclipse
- Java 8 & Missing required capability Require-Capability: osgi.ee; filter=”(&(osgi.ee=JavaSE)(version=1.8))”