简体   繁体   English

Eclipse:如何禁用“!=”令牌替换

[英]Eclipse: How to disable '!=' token replacement

I'm currently using Eclipse 2019-09 for Java Programming, and I've noticed that when I type the operator ',=', the IDE replaces it with "not-equals" symbol.我目前正在使用 Eclipse 2019-09 进行 Java 编程,我注意到当我键入运算符 ',=' 时,IDE 将其替换为“不等于”符号。 ≠. ≠。

I do not like this.我不喜欢这个。

I don't think this is from any plugins I have installed.我不认为这是来自我安装的任何插件。 Is this standard behaviour and is it possible to disable the operator token replacement within Eclipse?这是标准行为吗?是否可以在 Eclipse 内禁用操作员令牌替换?

And the correct answer goes to JB Nizet .正确答案是JB Nizet My programming font is "Fantasque Sans Mono", and the latest version has just introduced ligatures, causing the token replacement.我的编程字体是“Fantasque Sans Mono”,最新版本刚刚引入了连字,导致token替换。

This is a "feature" (requested back in 2013) See bug 398656 and I agree this is very distracting "like 'fi' now takes just one space in some fonts. Next thing, folks will request to code using MS Word or Latex.这是一项“功能”(早在 2013 年就提出了要求)请参阅错误 398656 ,我同意这非常令人分心,“例如,'fi' 现在在某些字体中只占用一个空格。接下来,人们将要求使用 MS Word 或 Latex 进行编码。

The solution is to use a font that still does not have ligatures.解决方案是使用仍然没有连字的字体。 Like Liberation Mono Regular and to select it in Basic => Text Font General Appearance preference as shown below.像 Liberation Mono Regular 并在Basic => Text Font General Appearance首选项中选择它,如下所示。 As far as I know there is no way to opt-out of that feature.据我所知,没有办法选择退出该功能。

首选位置

Fira Code is an extension of the Fira Mono font containing a set of ligatures for common programming multi-character combinations. Fira Code 是 Fira Mono 字体的扩展,包含一组用于常见编程多字符组合的连字。

I think "Fira Mono" is what you want.我认为“Fira Mono”就是你想要的。

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

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