Showing line numbers helps when editing SQL, script files, or XS artifacts in SAP HANA Studio (the Eclipse-based IDE). Below are step-by-step instructions, tips for different editors inside the studio, and troubleshooting.
File > Preferences > Settings → Search for line numbers → Choose on (or relative for diff mode).Window → Preferences.General → Editors → Text Editors.Apply and Close.Line numbers will now appear in the left gutter of SQL editors, console views, and other text editors. show line number in sap hana studio
The PlanViz (Visualize Plan) tool in HANA Studio shows operations. When you hover over a costly operator, it often references the line number in your SQLScript that generated the heavy operation. Line numbers connect performance metrics directly to your source code. How to show line numbers in SAP HANA
This method works universally across most Eclipse-based IDEs, including SAP HANA Studio. Some Eclipse-based editors have a small vertical ruler
.hdb or .sql file).✅ Result: Numbers will appear immediately next to every line of code.
SAP HANA Studio is the primary development environment for managing SAP HANA databases. When writing SQLScript, creating stored procedures, or debugging calculation views, identifying specific lines of code is essential. By default, the SQL Editor may not display line numbers. This report outlines the procedure to enable this feature to improve code navigation and error resolution.