在我的项目中,我们有一些全局变量作为容器:
MyProject.MyFreature.someFunction = function() { ... }
Run Code Online (Sandbox Code Playgroud)
那么我在整个网站上使用该脚本,JSLint/JSHint抱怨:
"MyProject"未定义
我知道我可以访问每个JavaScript文件并在其/*global MyProject*/上添加注释.但我正在寻找一种方法来在某种配置文件中定义该注释,所以我不必逐个文件添加此注释.
选择中的某种选择config/jshint.yml会很好.
鉴于我有一个像POJO:
public class Person {
private String name;
}
Run Code Online (Sandbox Code Playgroud)
我怎么能的IntelliJ生成getter和setter,而没有前缀get和set?
要得到这个:
public String name() {
return this.name;
}
public void name(String name) {
this.name = name;
}
Run Code Online (Sandbox Code Playgroud)
而不是这个:
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
Run Code Online (Sandbox Code Playgroud)