DBeaver中SQL编辑器的行号

61

如何在DBeaver中切换SQL编辑器上的行号?

我在Window / Preferences / General / Editors / SQL Editor中找不到此选项。

是否有可能实现这个功能?

6个回答

94

这个选项在 Window / Preferences / Editors / Text Editors 下:

图片描述

在旧版本中,这个选项在 Window / Preferences / General / Editors / Text Editors 下。

但正如 @simhumileco 指出的,当您右键单击编辑器的左边距时,上下文菜单中会有一个快捷方式。


37

我找到了它:

右键单击 SQL编辑器左侧列,从上下文菜单中选择显示/隐藏行号

输入图片描述


14

转到“窗口 > 首选项 > 通用 > 编辑器 > 文本编辑器”,然后勾选“显示行号”复选框。

输入图像描述


6

在版本21.0.4.202105021514中,它看起来像这样:

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

请改进您的答案,并附上解释。 - Sfili_81

4
您可以按照以下步骤进行操作:
Windows > Preferences > General > Editors > Text Editors > Show line numbers

踩票,这重复了已接受的答案。 - questionto42

1
在我的情况下,这些答案都不适用于我,所以我决定公开我的答案。
环境:
DBeaver: Version 23.2.0.202309041200
Mac M1 Pro

步骤

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

解决方案之前

beaver-non-line-numbers

解决方案之后

beaver-linu-numbers


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接