simhumileco
simhumileco

Reputation: 34643

The line number on the SQL Editor in DBeaver

How to toggle the line number on the SQL Editor in DBeaver?

I can't find this option in Window / Preferences / General / Editors / SQL Editor.

Is it possible to do this?

Upvotes: 77

Views: 105274

Answers (6)

Franco Gil
Franco Gil

Reputation: 431

In my case, none of this answers work for me, so I decide to expose my answer.

Environment

DBeaver: Version 23.2.0.202309041200
Mac M1 Pro

Steps

Select the Script \
Right click on the UI very close to the beginning of the line \
Left clik on "Show Line Numbers" button

Before solution

beaver-non-line-numbers

After solution

beaver-linu-numbers

Upvotes: 4

isapir
isapir

Reputation: 23592

It is under Window / Preferences / Editors / Text Editors:

enter image description here

In older versions it was under Window / Preferences / General / Editors / Text Editors.

But as @simhumileco pointed out, there is a shortcut in the context menu when you right-click the left gutter of the editor.

Upvotes: 130

simhumileco
simhumileco

Reputation: 34643

I found it:

Right click on left column of SQL Editor and click Show / Hide Line Numbers from context menu.

enter image description here

Upvotes: 45

Peter K
Peter K

Reputation: 61

In version 21.0.4.202105021514 it looks like this:

Windows > Preferences > Editors > Text Editors > Show line numbers

Upvotes: 6

Melopeter
Melopeter

Reputation: 189

Window > Preferences > General > Editors > Text Editors Then, select the checkbox "Show Line Numbers"

enter image description here

Upvotes: 16

user3785966
user3785966

Reputation: 2980

You can follow the below steps:

Windows > Preferences > General > Editors > Text Editors > Show line numbers

Upvotes: 4

Related Questions