Show Line Number In Sap Hana Studio May 2026
To show line numbers in SAP HANA Studio, you can enable them through the global editor preferences or by using a quick shortcut directly in your code editor. Method 1: Using Preferences (Permanent)
Result: All open and future text-based editors (including SQLScript editors, .hdb files, and plain .sql files) will now display a vertical ruler with line numbers on the left margin. show line number in sap hana studio
In the left-hand sidebar, expand the folders: General > Editors > Text Editors. Check the box labeled Show line numbers. Click Apply and Close. Keyboard Shortcuts To show line numbers in SAP HANA Studio,
- Go to
Preferences > General > Editors > Text Editors. - Under "Print margin column", enter
120(or your preferred limit). - Check
Show print margin.
Method A: Via the Editor Context Menu (Quickest)
This method toggles line numbers for the currently active editor view. Go to Preferences > General > Editors >
- Navigate to the main menu bar and click Window.
- Select Preferences from the dropdown.
- In the Preferences dialog tree, expand General.
- Expand Editors.
- Click on Text Editors.
- In the right-hand panel, locate the Appearance section.
- Check the box labeled Show line numbers.
- Click Apply and Close.
Here is the quick guide to enabling line numbers for your SQL and text editors. Option 1: The Quickest Way (Right-Click)
- Close HANA Studio.
- Navigate to your workspace directory (e.g.,
C:\Users\YourName\hana_workspace). - Delete the
.metadata\.plugins\org.eclipse.core.runtime\.settingsfolder (backup first). - Restart HANA Studio and re-enable line numbers.