如何在 NetBeans 中显示/显示隐藏或不可见的字符? [英] How to show/reveal hidden or invisible characters in NetBeans?

查看:20
本文介绍了如何在 NetBeans 中显示/显示隐藏或不可见的字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 NetBeans 中显示/显示隐藏字符?在其他编辑器中,如果启用此功能,则空格可能会显示为居中的小点,而制表符可能会显示为向右箭头.(此功能可用于查看文件是否使用制表符或空格进行缩进等.)

解决方案

此功能缺失已久——a ,从而使判断文件是否以 EOL 结尾变得不明显.

  • 隐藏字符以与普通文本相同的颜色显示.

  • 这些问题目前尚未得到解决,但可以通过 Editor Whitespace 第三方插件,其中:

    • 隐藏 EOL 和 EOF 标记(无论如何都没有用).
    • 始终使用相同的颜色显示其他空白字符.

    How can you show/reveal hidden characters in NetBeans? In other editors, if this feature is turned on, a space might be shown as a small centered dot, and a tab as a right arrow. (This feature is useful to see if a file uses tabs or spaces for indentation, among other things.)

    解决方案

    This feature was missing for a long time—a feature request was created on November 1999 and it was finally implemented on August 2010 (NetBeans 6.10). You can enable/disable it at "View → Show Non-printable Characters".

    Bug history

    As of NetBeans 7.0.1, the definition for "non-printable" seems to include tabs and carriage returns but not regular white space char:

    NetBeans 7.1.0 finally displays spaces. However, now it has a new bug where consecutive tabs (or tabs & spaces combinations) collapse into one tab:

    NetBeans 7.4.0 fixes this:

    There're yet a couple of issues:

    1. The end of file is represented with the same symbol as line feeds, thus making it non-obvious to determine whether the file ends with EOL.

    2. Hidden chars are displayed in the same colour as regular text.

    These issues have not been addressed so far but they can be sort of mitigated with the Editor Whitespace third-party plugin, which:

    • Hides the EOL and EOF markers (which aren't useful anyway).
    • Displays other whitespace characters using always the same colour.

    这篇关于如何在 NetBeans 中显示/显示隐藏或不可见的字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆