如何在SciTE中默认显示行号?

发布于 2024-07-29 17:00:45 字数 147 浏览 7 评论 0原文

我正在使用轻量级的 SciTE 文本编辑器,我非常喜欢它。

我想对其进行配置,以便在打开它时看到显示的行号。 我不想每次都检查“查看\行号”菜单。

我认为我可以做到这一点,但我在全局选项文件中没有看到该条目。 有人知道该怎么做吗?

I am using the lightweight SciTE Text editor and I like it very much.

I would like to configure it in order to see the line numbers displayed when I open it.
I don't want to check the "View\Line Number" menu every time.

I think that I can do it but I don't see the entry in my global options file. Does anybody know how to do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

扮仙女 2024-08-05 17:00:45

SciTEGlobal.properties 中尝试一下:

 # Sizes and visibility in edit pane
line.margin.visible=1
line.margin.width=5

Try this in SciTEGlobal.properties:

 # Sizes and visibility in edit pane
line.margin.visible=1
line.margin.width=5
沙与沫 2024-08-05 17:00:45
# Sizes and visibility in edit pane
line.margin.visible=1
line.margin.width=2+   # + will expand if needed
# Sizes and visibility in edit pane
line.margin.visible=1
line.margin.width=2+   # + will expand if needed
黎夕旧梦 2024-08-05 17:00:45

看到其他答案后,我会说保存到用户选项文件更“干净”,因为它是一个用户设置,当您出于其他原因迁移或复制它时,您也可以将此设置与您的主目录 fe 一起传输。 此外,在这种情况下,您的网站仍然会像您(以及可能的其他用户)期望的那样运行。

“转到菜单“选项”,然后选择“打开用户选项文件并
将此行添加到用户选项文件“.SciTEUser.properties”:

line.margin.visible=1
line.margin.width=0+   # + will expand if needed

附加注释:
根据我的口味,linux 中 scite 的字体太小,因此我还将这些行添加到 .SciTEUser.properties 中:

magnification=1
output.magnification=1

Having seen the other answers i would say it is more "clean" to save to User options file, because it is a user setting and you might also transfer this setting together with your home directory f.e. when you migrate or copy it for other reason. Also in this cases your scite would still behave like YOU (and possibly other users) expect.

"Go to menu 'Options' and there select 'Open User Options File and
add this line to User options file ".SciTEUser.properties":

line.margin.visible=1
line.margin.width=0+   # + will expand if needed

additional comment:
for my taste the font of scite in linux is too small and therefore i also added these lines to .SciTEUser.properties:

magnification=1
output.magnification=1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文