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 >

  1. Navigate to the main menu bar and click Window.
  2. Select Preferences from the dropdown.
  3. In the Preferences dialog tree, expand General.
  4. Expand Editors.
  5. Click on Text Editors.
  6. In the right-hand panel, locate the Appearance section.
  7. Check the box labeled Show line numbers.
  8. 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)

  1. Close HANA Studio.
  2. Navigate to your workspace directory (e.g., C:\Users\YourName\hana_workspace).
  3. Delete the .metadata\.plugins\org.eclipse.core.runtime\.settings folder (backup first).
  4. Restart HANA Studio and re-enable line numbers.