在 Eclipse 中查看选项卡
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/971283/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
view tabs in eclipse
提问by dhaval
I need to view the tabs and spaces and CRLF in python source code in eclipse the same way we could see them in notepad++, Now I have to edit in notepad++ and run in eclipse. Not a neat way but eclipse does regular update of the changes of same file in other editor.
我需要在 eclipse 中查看 python 源代码中的选项卡和空格以及 CRLF,就像我们在记事本 ++ 中看到它们的方式一样,现在我必须在记事本 ++ 中进行编辑并在 eclipse 中运行。不是一种巧妙的方式,但 Eclipse 会定期更新其他编辑器中相同文件的更改。
回答by VonC
This should be cover with the "Show invisible" option
这应该被“显示不可见”选项覆盖
From Eclipse3.3:
It is now possible to see the invisible whitespace characters in textual editors:
This feature can either be controlled via "
General > Editors > Text Editors > Show whitespace characters
" preference, or via the tool bar button when the Editor Presentation action set is enabled.
现在可以在文本编辑器中看到不可见的空白字符:
此功能可以通过“
General > Editors > Text Editors > Show whitespace characters
”首选项进行控制,也可以在启用编辑器演示操作集时通过工具栏按钮进行控制。
I did not tried it with PyDev, but its editor should be a "textual editor", and the option should work.
我没有用PyDev尝试过,但它的编辑器应该是一个“文本编辑器”,并且该选项应该可以工作。
when I press
TAB
it creates spaces instead of>>
for tabs
当我按下
TAB
它时会创建空格而不是>>
制表符
Check the option "General > Editors > Text Editors > Insert spaces for tabs
":
if unchecked, it will display tabs, not space.
选中选项“ General > Editors > Text Editors > Insert spaces for tabs
”:
如果未选中,它将显示制表符,而不是空格。