eclipse 如何显示空格和制表符但不显示换行符?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6548187/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:16:36  来源:igfitidea点击:

How to show whitespace and tabs but NOT line-break characters?

eclipseuser-interfaceeclipse-pdt

提问by Strae

I'm trying to switch from Komodo to Eclipse.

我正在尝试从 Komodo 切换到 Eclipse。

I can't figure out how to keep line-break characters from being shown in eclipse - looks like they are shown along with tabs and other whitespace characters.

我不知道如何防止换行符显示在 Eclipse 中 - 看起来它们与制表符和其他空白字符一起显示。

Is there a way to show tabs and other whitespace characters but not line-break characters?

有没有办法显示制表符和其他空白字符但不显示换行符?

回答by Deepak Azad

If you have Eclipse 3.7 you can disable them.

如果您有 Eclipse 3.7,您可以禁用它们。

Preferences > General > Editors > Text Editors -- Look for 'Show whitespace characters' and click on the link 'whitespace characters'.

首选项> 常规> 编辑器> 文本编辑器--查找“显示空白字符”并单击“空白字符”链接。

回答by Sachin Chavan

Or you can directly click on the shortcut:enter image description here

或者你可以直接点击快捷方式:在此处输入图片说明

回答by Thomas Vuillaume

In the Luna version, this configurability is now called "configure visibility" under "Show Withespace characters"

在 Luna 版本中,此可配置性现在称为“显示 Withespace 字符”下的“配置可见性”

回答by Alok Ranjan

In your Eclipse, go to:

在您的 Eclipse 中,转到:

Window --> Preferences --> General --> Editors --> Text Editors

Window --> Preferences --> General --> Editors --> Text Editors

Click the highlighted link (configure visibility) in the check-box SHOW WHITESPACE CHARACTERS and select the check box as per your requirement.

单击显示空格字符复选框中突出显示的链接(配置可见性),然后根据您的要求选中该复选框。

Click the highlighted link

单击突出显示的链接