IDEA2020.1常用配置說(shuō)明
該配置基于IDEA2020.1版本,如后續(xù)有版本更新或者配置變更,再更新
idea64.exe.vmoptions配置
為提供IDEA啟動(dòng)速度和性能,需修改該文件中標(biāo)紅的配置項(xiàng)
`-Xms2048m` # java heap初始值,建議將其與Xmx配置的一樣 `-Xmx2048m` # java heap最大值 `-XX:ReservedCodeCacheSize=1536m` # 預(yù)留保存代碼的內(nèi)存空間 -XX:+UseConcMarkSweepGC # 老年代使用CMS垃圾回收策略(并發(fā)標(biāo)記清除) -XX:SoftRefLRUPolicyMSPerMB=50 #每兆堆空閑空間中SoftReference的存活時(shí)間(單位:秒) -Xverify:none -ea # 開(kāi)啟斷言 -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true # 在使用ipv4的主機(jī)上運(yùn)行ip6系統(tǒng)需開(kāi)啟此項(xiàng) -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true
配置一些IDEA的配置、日志、插件存儲(chǔ)路徑.windows環(huán)境下默認(rèn)存儲(chǔ)在C盤(pán)的用戶目錄下,由于會(huì)占用較大空間,建議配置到其他目錄。
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=D:/Program Files/JetBrains/.IntelliJIdea/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=D:/Program Files/JetBrains/.IntelliJIdea/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=${idea.system.path}/log
常用IDEA插件
僅介紹日常使用的IDEA插件,排名不分先后,根據(jù)字母順序排序
- Alibaba Java Coding Guidelines:阿里巴巴代碼規(guī)范檢查插件.當(dāng)前版本為2.0.2。2.0.1版本將導(dǎo)致IDEA2020.1無(wú)法打開(kāi)設(shè)置頁(yè)面
- BashSupport:提供bash支持,支持運(yùn)行配置、語(yǔ)法高亮、重命名、文檔查找、檢查、快速修復(fù)等功能
- Chinese (Simplified) Language Pack EAP:IDEA官方漢化插件,用于更好地了解IDEA的配置項(xiàng)。因?yàn)椴簧倥渲庙?xiàng)仍未漢化,所以平常這個(gè)插件都是置于disabled。
- Easy Code:基于IntelliJ IDEA開(kāi)發(fā)的代碼生成插件,支持自定義任意模板(Java,html,js,xml)。支持?jǐn)?shù)據(jù)庫(kù)類型與java類型映射關(guān)系配置;
- 支持同時(shí)生成生成多張表的代碼。
- Extra Icons:為IDEA未設(shè)置圖標(biāo)的文件類型提供圖標(biāo)配置。
- Free MyBatis plugin:增強(qiáng)idea對(duì)mybatis支持的插件,支持生成mapper xml文件、自動(dòng)補(bǔ)全及語(yǔ)法錯(cuò)誤提示和從mapper跳轉(zhuǎn)到mapper.xml
- Git Commit Template:git提交信息模板
- Grep Console:日志高亮顯示插件
- Maven Helper:更好地管理maven依賴,解決maven沖突等問(wèn)題
- Rainbow Brackets:給配對(duì)括號(hào)配置不同顏色插件
- Translation:提供谷歌翻譯、有道翻譯、百度翻譯功能
IDEA詳細(xì)配置
僅介紹基于個(gè)人習(xí)慣而配置的一些選項(xiàng)
編輯頁(yè)面顯示內(nèi)存使用情況
菜單欄->View->Appearance->Status Bar Widgets->Memory Indicator

IDEA主題配置
File->Settings->Appearance & Behavior-> Appearance->Theme
IDEA 菜單欄字體及大小配置
File->Settings->Appearance & Behavior-> Appearance->Use custom font
禁止自動(dòng)打開(kāi)上次的項(xiàng)目
File->Settings->Appearance & Behavior->System Settings->Reopen last project on startup
IDEA編輯器主題配置
File->Settings->Editor-> Color Scheme->Shcheme
設(shè)置鼠標(biāo)懸浮提示: 當(dāng)鼠標(biāo)懸浮與方法名時(shí)顯示方法參數(shù)等信息
File->Settings->Editor-> Color Editing->Quick Documentation->Show quick documentation on mouse move
設(shè)置自動(dòng)導(dǎo)包功能
File->Settings->Editor-> General->Auto Import->Java
Add unambiguous imports on the fly:自動(dòng)導(dǎo)入不明確的結(jié)構(gòu);
Optimize imports on the fly: 自動(dòng)優(yōu)化導(dǎo)入的包

忽略大小寫(xiě)提示
File->Settings->Editor-> General->Code Completion

取消單行tabs顯示
File->Settings->Editor-> General->Editor Tabs->Show tabs in one row
配置類的文檔注釋信息
File->Settings->Editor-> File and Code Templates->Includes

快捷鍵生成serialVersionUID
File->Settings->Editor->Inspections

設(shè)置文件編碼
File->Settings->Editor->File Encodings
Global Encoding: 全局編碼
Project Encoding: 項(xiàng)目編碼

建議全部設(shè)置為utf-8
配置自動(dòng)編譯
File->Settings->Build, Execution, Deployment->Compiler

debug配置
File->Settings->Build, Execution, Deployment->Debugger

開(kāi)啟該配置,可減少debug時(shí)的內(nèi)存占用
maven配置
File->Settings->Build, Execution, Deployment->Build Tools->Maven
maven home directory: maven安裝目錄
User settings file:maven配置文件路徑
Local repository:maven本地倉(cāng)庫(kù)目錄
到此這篇關(guān)于IDEA2020.1常用配置說(shuō)明的文章就介紹到這了,更多相關(guān)IDEA2020.1 配置內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
SpringBoot+Spring?Data?JPA整合H2數(shù)據(jù)庫(kù)的示例代碼
H2數(shù)據(jù)庫(kù)是一個(gè)開(kāi)源的關(guān)系型數(shù)據(jù)庫(kù),本文重點(diǎn)給大家介紹SpringBoot+Spring?Data?JPA整合H2數(shù)據(jù)庫(kù)的示例代碼,感興趣的朋友跟隨小編一起看看吧2022-02-02
Java多線程Queue、BlockingQueue和使用BlockingQueue實(shí)現(xiàn)生產(chǎn)消費(fèi)者模型方法解析
這篇文章主要介紹了Java多線程Queue、BlockingQueue和使用BlockingQueue實(shí)現(xiàn)生產(chǎn)消費(fèi)者模型方法解析,涉及queue,BlockingQueue等有關(guān)內(nèi)容,具有一定參考價(jià)值,需要的朋友可以參考。2017-11-11
使用SpringMVC返回json字符串的實(shí)例講解
下面小編就為大家分享一篇使用SpringMVC返回json字符串的實(shí)例講解,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-03-03
如何使用IDEA創(chuàng)建MAPPER模板過(guò)程圖解
這篇文章主要介紹了如何使用IDEA創(chuàng)建MAPPER模板,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-05-05
Java多線程處理千萬(wàn)級(jí)數(shù)據(jù)更新操作
這篇文章主要為大家詳細(xì)介紹了Java如何通過(guò)多線程處理千萬(wàn)級(jí)數(shù)據(jù)更新操作,文中的示例代碼講解詳細(xì),感興趣的小伙伴可以跟隨小編一起學(xué)習(xí)一下2024-11-11
使用Java解析JSON數(shù)據(jù)并提取特定字段的實(shí)現(xiàn)步驟(以提取mailNo為例)
在現(xiàn)代軟件開(kāi)發(fā)中,處理JSON數(shù)據(jù)是一項(xiàng)非常常見(jiàn)的任務(wù),無(wú)論是從API接口獲取數(shù)據(jù),還是將數(shù)據(jù)存儲(chǔ)為JSON格式,解析和提取JSON中的特定字段都是開(kāi)發(fā)人員需要掌握的基本技能,本文將以一個(gè)實(shí)際案例為例,詳細(xì)介紹如何使用Java解析JSON數(shù)據(jù)并提取其中的mailNo字段2025-01-01
在SpringBoot項(xiàng)目中利用maven的generate插件
今天小編就為大家分享一篇關(guān)于在SpringBoot項(xiàng)目中利用maven的generate插件,小編覺(jué)得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來(lái)看看吧2019-01-01

