简体   繁体   English

IntelliJ IDEA 代码完成在 Node 应用程序中不起作用,因为 Java

[英]IntelliJ IDEA code completion not work in Node app as Java

I just started to learning Node.js and I prefer to use the same IDE (IntelliJ IDEA) that I use for a long time.我刚开始学习 Node.js,我更喜欢使用我使用了很长时间的相同 IDE (IntelliJ IDEA)。 However, some code completion features does not seem to work.但是,某些代码完成功能似乎不起作用。

For example:例如:

In java, when I write something like System.out.println(getName()) and press semicolon when the cursor (|) is on System.out.println(getName()|) it add semicolon at the end of the statement.在 java 中,当我编写类似System.out.println(getName())的内容并在 cursor (|) 位于System.out.println(getName()|)上时按分号时,它会在语句末尾添加分号。

However, when I write something in a node project on app.js file console.log(files) and press press semicolon when the cursor (|) is on `console.log(files|), it adds semicolon to the current cursor position instead of at the end of the statement. However, when I write something in a node project on app.js file console.log(files) and press press semicolon when the cursor (|) is on `console.log(files|), it adds semicolon to the current cursor position而不是在语句的末尾。

So, how can I make IntelliJ to behave as it is on a Java file?那么,我怎样才能让 IntelliJ 在 Java 文件上表现得像它一样?

I tried some settings as on the screenshot, but does not make any sende:(我尝试了屏幕截图中的一些设置,但没有进行任何发送:(

enter image description here在此处输入图像描述

Please vote for WEB-54481 to be notified on any progress with it请投票支持WEB-54481以获知任何进展

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

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