“IDEA配置”的版本间的差异

 
(未显示同一用户的9个中间版本)
第1行: 第1行:
===内存和编码设置===
+
== 激活 ==
 +
请参考以下网址
 +
http://idea.lanyus.com/?tdsourcetag=s_pcqq_aiomsg
 +
 
 +
==代码格式化==
 +
采用谷歌的idea代码格式化配置文件,请自行下载
 +
https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml
 +
 
 +
==内存和编码设置==
 
修改按照目录下 idea64.exe.vmoptions 文件
 
修改按照目录下 idea64.exe.vmoptions 文件
  
第10行: 第18行:
 
</pre>
 
</pre>
  
 +
== 设置项目文件编码 ==
  
===idea 设置参数提示 ===
+
[[文件:2222.jpg|居中]]
  
[[文件:Idea 设置参数提示 .png|居中]]
+
== 取消单行显示 tabs 的操作 ==
 +
 
 +
[[文件:3333.jpg|居中]]
  
===文件修改后星号提示===
+
==idea 设置参数提示 ==
  
Settings -> Editor -> General -> Editor Tabs: Check "Mark modified tabs with asterisk"
+
[[文件:Idea 设置参数提示 .png|居中]]
  
[[文件:Idea星号提示.png|居中]]
+
== 设置自动编译 ==
  
===解决tomcat中文乱码问题==
+
[[文件:4444.jpg|居中]]
  
===设置 ALT+/ 代码提示快捷键 ===
+
==文件修改后星号提示==
使用eclipse都习惯使用快捷键ALT+/ 来代码自动提示,后来使用IntelliJ Idea这个快捷键并不管用,十分不便,这里记录如何使更改idea代码自动提示快捷键。
 
[[文件:20170808160713436.png|居中]]
 
移除占用Alt+斜杠的快捷键
 
需要将Basic的快捷键修改为Alt+/,但Alt+/被Cyclic Expand Word占用,所以先修改Cyclic Expand Word的快捷键,右键Remove Alt+斜杠。
 
[[文件:20170808161002969.png|居中]]
 
设置Basic快捷键为Alt+斜杠
 
  
右键Add Keyboard Shutcut,然后在键盘上按下Alt+空格,点击ok即完成修改。
+
Settings -> Editor -> General -> Editor Tabs: 勾选 "Mark modified tabs with asterisk"
  
[[文件:20170808161342648.png|缩略图]]
+
[[文件:Idea星号提示.png|居中]]
  
===@Autowired取消提示===
+
==@Autowired取消提示==
 
在File -- Settings -- Inspections。在Spring Core -- Autowring for Bean Class 中,
 
在File -- Settings -- Inspections。在Spring Core -- Autowring for Bean Class 中,
  
 
将Severity的级别由之前的error改成warning 或者取消勾选。
 
将Severity的级别由之前的error改成warning 或者取消勾选。
  
[[文件:QQ截图20190815090739.png|缩略图]]
+
[[文件:QQ截图20190815090739.png|居中]]
 +
 
 +
==配置使用Maven==
 +
 
 +
[[文件:5555.jpg|居中]]
 +
 
 +
== 解决tomcat中文乱码问题 ==
 +
在tomcat Server中设置 VM options , 值为 -Dfile.encoding=UTF-8
 +
[[文件:717943-20190124093658943-1191924990.png|居中]]

2019年8月27日 (二) 13:54的最新版本

激活

请参考以下网址 http://idea.lanyus.com/?tdsourcetag=s_pcqq_aiomsg

代码格式化

采用谷歌的idea代码格式化配置文件,请自行下载 https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml

内存和编码设置

修改按照目录下 idea64.exe.vmoptions 文件

-Xms1024m
-Xmx2048m
-Dfile.encoding=UTF-8
-Dconsole.encoding=UTF-8
-Didea.cycle.buffer.size=disabled

设置项目文件编码

2222.jpg

取消单行显示 tabs 的操作

3333.jpg

idea 设置参数提示

Idea 设置参数提示 .png

设置自动编译

4444.jpg

文件修改后星号提示

Settings -> Editor -> General -> Editor Tabs: 勾选 "Mark modified tabs with asterisk"

Idea星号提示.png

@Autowired取消提示

在File -- Settings -- Inspections。在Spring Core -- Autowring for Bean Class 中,

将Severity的级别由之前的error改成warning 或者取消勾选。

QQ截图20190815090739.png

配置使用Maven

5555.jpg

解决tomcat中文乱码问题

在tomcat Server中设置 VM options , 值为 -Dfile.encoding=UTF-8

717943-20190124093658943-1191924990.png