如何在 Ubuntu 上的 Geany 中保持无选项卡状态?
如何在 Ubuntu 上的 Geany 中保持 Tab 自由?
当我用 Python 编码时,制表符总是让我烦恼。并且 TAB 是不可见的。太奇怪了。
当我通过 gedit 打开代码时,这些选项卡是可见的。
How can I stay tab free in Geany on Ubuntu?
When I am coding in Python, tabs have always annoyed me. And the TAB is invisible. So strange.
When I open my code by gedit, those TABs are visible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您正在寻找“软选项卡”
http://www.geany .org/manual/dev/index.html#editor-indentation-preferences
编辑>首选项>编辑>缩进>类型>空格
更改设置后,关闭并重新打开文件。
要将选项卡设置应用到当前会话中的每个文档,另请单击:
项目 -> 应用默认值。
You are looking for 'soft tabs'
http://www.geany.org/manual/dev/index.html#editor-indentation-preferences
Edit > Preferences > Editor > Indentation > Type > Spaces
After changing the setting, close and reopen the file.
To apply the tab settings to every document in the current session, also click:
Project->Apply Default.
DTing 是对的,但要记住一点:
您必须关闭 Geany 中的所有文件(选项卡)并再次打开它们才能使新设置在每个文件中起作用。我花了几天时间才发现我不仅必须关闭 geany 并再次打开它,而且还必须单独重新打开每个文件。
DTing is right but on thing to remember:
You have to close all files (tabs) in Geany and open them up again to have the new settings work in each file. It took me days to figure out that I not only have to close geany and open it up again but that I also have to re-open each file seperately.
我知道我对此有点晚了,但希望这个答案对其他人有帮助。关闭 Geany 后,使用其他编辑器编辑
~/.config/geany/geany.conf
,将行:更改为:
,设置将“生效”。
I know I'm a bit late on this, but hopefully this answer might help someone else. With Geany closed, edit
~/.config/geany/geany.conf
with some other editor, changing the lines:to:
and the settings will "take".
要对打开的文档生效,必须转到:
文档配置已在全球流行。
To take effect on opened documents has to go to:
The document configuration has prevalence over the global.
这是我喜欢的另一个技巧,它几乎适用于任何编辑器。启用视图空白,再也不会对文件中的内容感到困惑:
然后重新启动 Geany。
我使用语法突出显示功能使这些符号非常微妙,呈低对比度灰度,因此人们必须仔细观察才能看到它们。该选项卡在 scintilla 编辑器中仍然很容易看到,因为它将是一个多字符长箭头。
Here's another tip I like that works in almost any editor. Enable view whitespace, and never get confused again about what's in the file:
Then restart Geany.
I use the the syntax highlighting features to make these symbols very subtle, a low contrast greyscale, so one has to look to see them. The tab is still somewhat easy to see in scintilla editors because it it will be a multi-character long arrow.
我遇到了同样的问题,但文档作为项目的一部分打开。
在这种情况下,制表符/空格设置将被项目->首选项覆盖
I faced the same problem, but documents opened as part of project.
In this case the tab/spaces setting is overriden by project->preferences