如何在Intellij Idea中使用//而不是##对Java代码进行注释?

如何在Intellij Idea中使用//而不是##对Java代码进行注释?,java,intellij-idea,comments,Java,Intellij Idea,Comments,当我使用Ctrl+/在IDEA中注释代码时,它总是###,而不是//。当我将代码合并到其他代码中时,会造成混乱 ##import org.springframework.web.bind.annotation.RequestBody; ##import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import

当我使用Ctrl+/在IDEA中注释代码时,它总是###,而不是//。当我将代码合并到其他代码中时,会造成混乱

##import org.springframework.web.bind.annotation.RequestBody;
##import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
如何使用Ctrl+/而不是##对代码进行注释?比如:


这是一些奇怪的设置。这是
.java
文件吗?IDEA似乎将其视为java以外的语言。它是一个java.vm文件,文件全名为cotroll.java.vm文件扩展名
.vm
似乎与之关联,其中注释由
表示。所以问题是为什么您的java代码位于扩展名为
.vm
的文件中。我现在清楚了,非常感谢!我正在写一个电子商务后端。.vm文件是内置的框架文件。
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;