IntelliJ IDEA是Java集成开发环境(Integrated Development Environment,IDE)工具软件,由JetBrains软件公司(前称为IntelliJ)开发,提供Apache 2.0开放式授权的社区版本以及专有软件的商业版本,开发者可选择其所需来下载使用。
下载
IntelliJ IDEA
1.版本
- Ultimate:For web and enterprise development.(推荐)
- Community:For JVM and Android development.
快捷输入
1 2 3 4 5 6
| public static void main(String[] args) { }
System.out.println();
|
1
| View->Appearance->Tool Bar/Tool Window Bar
|
1
| Settings->Editor->General->Code Completion->Show theDocumentation popup in 1000 ms
|
1
| Settings->Editor->General->Appearance->Show method separators
|
1
| Settings->Editor->General->Editor Tabs->Multiple rows / show pined tabs in a separatw row
|
1
| Settings->Editor->Color Scheme ->Java->Line comment(单行注释)/Block comment多行注释(取消勾选Interit values from:)->Bold(粗体)/Italic(斜体)/Foreground->Apply
|
1
| File->Project Structure->Modules->Content Root(删除全部再添加)
|
- **src(源代码)无法新建Java文件(未变蓝)**
1
| 右击src->Mark Directory as -> Source Root
|
1
| Project Structure ->更改Project compiler output下的out目录
|
1 2
| 右击该文件 选择Split Right/Split Down
|
快捷键
快捷键组合 |
含义 |
Ctrl+左击 |
查看源代码 |
Alt+Insert |
Constructor/gettter/setter/override |
Ctrl+H |
调出决策树 |
Tips
1.刷新项目/清除项目缓存
File -> Invalidate Caches/Restart
resource 存放资源文件 properties/XML等等
Ctrl+Shift+R 替换