IntelliJ IDEA 问题

IntelliJ IDEA恢复安装时的初始状态

C:\Users\Hellsino.IntelliJIdea2018.2
文件全删,但此过程会导致重新激活

彻底删除项目文件

C:\Users\Hellsino\IdeaProjects

Intellij Idea自动生成serialVersionUID

搜索再勾选:Serializable class without serialVersionUID

去除代码中的波浪线(黄色警告线)

File-->Settings-->Editor-->Code Scheme-->General-->Errors and Warnings-->Weak Warning
将右侧Error stripe mark 和 Effects 取消勾选,点击 Apply-->OK 即可去掉警告线。

IDEA中javascript代码错误提示

Settings->Languages & Frameworks->JavaScript->JavaScript language version->ECMAScript 6

创建同名项目报错解决(缓存清除)

C:\Users\Administrator.IntelliJIdea2017.3\system\frameworks\detection

C:\Users\Administrator.IntelliJIdea2018.2\system\frameworks\detection

C:\Users\Administrator.IntelliJIdea2019.3\system\frameworks\detection

IDEA Error:java: Compilation failed: internal java compiler error

解决办法很简单:File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler 设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.8版本的。

HTML格式化时标签缩进问题

在IntelliJ Idea中HTML格式化时,默认以及下的以及标签都不会缩进。

解决方法:editor->code style->HTML->other->Do not indent children of
删掉这几项就可以了。

JUnit4自动导包问题

import org.junit.Test;
public class Test {
    //导包失败
  
    //scanner输入卡死->help -> edit custom vm options
    //最后一行添加:-Deditable.java.test.console=true
}

猜你喜欢

转载自www.cnblogs.com/hellsino/p/12129743.html