IDEA 的核心配置

另一篇IDEA的日常使用:http://www.itdecent.cn/p/fbbca8ceb760

IDEA 基本配置:- 基于設(shè)置所在的位置從上到下,按順序?qū)哟沃v解。

1. Help? ->Edit Custom VM options ->

? ? ? ? 修改? -Xms、-Xmx、 -XX:ReservedCodeCacheSize、 這三個(gè)屬性值來(lái)優(yōu)化IDEA的啟動(dòng)速度,也可解決VM 內(nèi)存溢出的問(wèn)題。

2.全局設(shè)置和針對(duì)當(dāng)前的項(xiàng)目的局部設(shè)置

? ? 全局設(shè)置:

? ? ? ? ? 進(jìn)入方式1: Other Settings -> Settings? for new project? ?

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Other Settings -> Structure for? new project? -全局項(xiàng)目組織設(shè)置

? ? ? ? ? 進(jìn)入方式2: IDEA 歡迎頁(yè)面? -> Configure -> Settings?

以下是歡迎頁(yè)面進(jìn)入全局配置:

? 核心配置項(xiàng):?

? ? ? ? ? System Setings ->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? startup/Shutdown->

取消勾選 : Reopen last project on starup -是否跳過(guò)歡迎頁(yè)面,直接打開上一次IDEA最后打開的文件,這里取消勾選讓其啟動(dòng)IDEA 顯示歡迎頁(yè)面。? ? ?

? Editor ->

? ? ? ?General ->

勾選上:Change font size(Zoom) with Ctrl +Mouse Wheel -鼠標(biāo)滾動(dòng),設(shè)置字體大小

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Show quick documentation on mouse move Delay(ms):500? - 設(shè)置鼠標(biāo)懸浮提? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 示文檔信息以及耗時(shí)

? ? ? ? ? ? ? ? ? ? ? ? Code Completion? ? ->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Parameter Info ->

?????????????????勾選上? ?1. Show parameter name hints on completion? ? ?

?????????????????????????????? 2.Show the parameter info popup in 1000ms

? ? ? ? ? ? ? ? ? ? ????????? ? 3.Show full method signatures


? Font ->????

? ? ? ? ? ? ? ? ? ? ? ? ? ? 修改項(xiàng): Font? -字體風(fēng)格

? ? ? ? ? ? ? ? ? ? ? ? ? ? Size? - 字體大小


? ? Auto Import ->

? ? ? ? ? ? ? 修改項(xiàng):

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? insert imports on paste : ALL? - 自動(dòng)導(dǎo)入包 ? ?

? ? ? ? ? ? ? ? ? 勾選上 :? Add unambigous imports on the fly

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Optimize imports on the fly(for current project)

? ? Appearance ->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 勾選上: Show line numbers - 顯示行號(hào)

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Show method separators? - 顯示方法分隔符

? ? Code Completion ->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?取消勾選: Match case? -相符

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?First letter only? - 根據(jù)首字母匹配來(lái)進(jìn)行提示

????????????????????????????????????? All? letter? ? ? ? - 所有字母匹配來(lái)進(jìn)行提示

? ? ?Postfix Completion ->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? JAVA? ... IDEA? 提供的一系列關(guān)鍵字母綁定代碼塊的模板,可以快?速? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???????根據(jù)關(guān)鍵字母生成對(duì)應(yīng)的代 碼塊。不可更改??。? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??

?Color Scheme ->

????????????????????????????? Comments ->

????????????????????????????????????????????????? ? 修改項(xiàng): Block comment

? ? ????????????????????????????????????????????????? Line comment

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 勾選上:

? ? ? ????????????????????????????????????????????????????? Bold? -加粗

? ????????????????????????????????????????????????????????????? Italic? -傾斜 ?

????????????????????????????????????????????????????????????? ? Foreground - 顏色? ? 值? 77B767

? File and Code Templates ->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Includes ->

????????????????????????????????????????????????????????????????????修改項(xiàng):

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Flie Header? -設(shè)置每次創(chuàng)建文件時(shí)的頭部信息,右下角有基本? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ????????????設(shè)?置值說(shuō)明

? File Encodings ->

????????????????????? ? 修改項(xiàng): Global Encoding - 全局字符集編碼

? ? ? ? ????????????????????????????? ? Project Encoding -> 項(xiàng)目字符集編碼? ? ?

? Live Templates ->

? ????????????????????????????? ? 該設(shè)置項(xiàng)下面是一些可以自定義設(shè)計(jì)關(guān)鍵字母綁定代碼塊的模塊??尚薷囊部? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ????? 新增自定義代碼模塊。

? Plugins ->

????????????????????????????Install JetBrains plugin...? -JetBrains? 官方提供的插件

? ? ? ? ? ? ? ? ? ? ? ? ? ? Browse repositories? ? ? ? ? - 瀏覽倉(cāng)庫(kù)提供的插件

? ? ? ? ? ? ? ? ? ? ? ? ? ? Install plugin from disk..? - 安裝磁盤的插件

? Version Control ->

? ????????????????????????????? GitHub? ->

????????????????????????????????????????????????????添加賬號(hào)信息,login in

? ????????????????????????????????????????????? ? -> 下載測(cè)試連接插件。測(cè)試完后再完成連接并添加成功。

? ? Git ->

????????????????修改項(xiàng):Path to Git executable? -Git的安裝路徑? D:\Program Files\Git\bin\git.exe


????????????????測(cè)試: Test? -用來(lái)測(cè)試是否Git 配置是否可用

? Subversion ->

????????????????????選擇svn 的安裝路徑 -D:\Program Files\TortoiseSVN\bin\svn.exe

? Build,Execution,Deployment ->

Build Tools ->

????????????????? 修改項(xiàng): Maven ->?

????????????????????????????????????????????????????Maven home directory -Maven 的安裝路徑 D:/maven/apache-? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???maven-3.3.9? ? //不用到bin目錄

? ? ? ? ???????????????????????? ? User settins - Maven 配置文件的路徑

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Local repository -Maven 本地倉(cāng)庫(kù)的路徑

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Runner ->? ??

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?VM Options -Dspring.output.ansi.enabled=ALWAYS? -控制臺(tái)彩色打印

? Runner ->

? ????????????????????修改項(xiàng):VM Options -設(shè)置值為? -Dspring.output.ansi.enabled=ALWAYS 將控制臺(tái)? ? ? ? ? ? ? ? ????????????? 的?輸出為彩色

? Importing ->

????????????????????????勾選上:Import Maven project files externally -自動(dòng)導(dǎo)入依賴jar包


Compiler ->

????????????????????勾選上:Build project antomatically (only works while not running ) -開啟自動(dòng)編譯

? ? ? ? Debugger ->

? ? ? ? ? ? ? ? ?Transport ->

????????????????????????????勾選上:Shared memory -優(yōu)化調(diào)試,也可以選擇默認(rèn)值 Socket。

? ? ? ? ? java Compiler ->? ? ? ? -用來(lái)設(shè)置jdk的編譯器版本的

? ? ? ? ? ? ? ? ? ? ? ? ? ?修改: project bytecode version : 8

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? targe bytecode version :? 8

IDEA的Project Structure全局配置和局部配置 :

全局配置:

????????????? Other Settings? ->

????????????????Structure for new Projects ->

局部配置? Project Settins ->

? ????????????????修改項(xiàng):ProjectSDK -jdk 的安裝路徑 -配置jdk

? ???????????? ? Libraries- 各種jar包的集合 庫(kù)文件

平臺(tái)、全局配置 platform Settins ->

? ? ? ? ? ? ? ? 軟件開發(fā)工具包? SDKs ->

????????????????????????????????修改項(xiàng):? Name? -指定JDK 的名字

????????????????????????????? JDK home path - JDK 的安裝路徑

????????????????????????????C:\Program Files\Java\jdk1.8.0_161

????????????????????????????---可以添加多個(gè)JDK,最好只添加一個(gè)

????????????????????????????Global Libraries? -> 全局 各種jar包的集合 庫(kù)文件

局部配置:

? ? ? ? ? Project Structure ->

Project ->

? ????????????????修改項(xiàng):Project SDK? - JDK的安裝路徑

必備插件:

1.忽略文件插件 2. 阿里巴巴代碼檢查插件


maven 幫助插件


進(jìn)程監(jiān)控插件
翻譯插件
Lombok插件
格式化 SQL插件
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容