简体   繁体   English

如何在webstorm中显示不可见字符

[英]How to show invisible characters in webstorm

As many of you have probably come across the problem of cutting and pasting some code, which comes along with it some hidden characters often resulting in the dreaded UNEXPECTED_TOKEN_ILLEGAL你们中的许多人可能都遇到过剪切和粘贴一些代码的问题,随之而来的是一些隐藏的字符,通常会导致可怕的UNEXPECTED_TOKEN_ILLEGAL

Is there a way within Webstorm to show/hide invisible characters? Webstorm 中有没有办法显示/隐藏隐形字符?

Install and use Zero Width Characters locator plugin -- it can detect quite few invisible characters (eg UTF-8 BOOM sequence, non-breakable space etc).安装并使用零宽度字符定位器插件——它可以检测到很少的不可见字符(例如 UTF-8 BOOM 序列、不可破坏空间等)。

It is implemented as separate inspection with highest (Error) severity so will be easy to spot or check whole folder/project just for these issues.它作为具有最高(错误)严重性的单独检查实施,因此很容易发现或检查整个文件夹/项目,仅针对这些问题。


There is a ticket (Feature Request) to have an option to show invisible characters in editor.有一张票(功能请求)可以选择在编辑器中显示不可见字符。

https://youtrack.jetbrains.com/issue/IDEA-115572 -- watch this ticket (star/vote/comment) to get notified on any progress. https://youtrack.jetbrains.com/issue/IDEA-115572——观看这张票(明星/投票/评论)以获取任何进展的通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM