idea的Setting设置,怎样带来良好体验(1)
前言
IDEA是一个智能开发工具,每个开发者的使用习惯不同,如何个性化自己的IDEA?我们可以通过Settings功能来设置。Settings文件是IDEA的配置文件,通过他可以设置主题,项目,插件,快捷键等。
介绍
[idea的setting的详细介绍 -转自JaJian](https://www.cnblogs.com/jajian/p/8080612.html)
开始配置Setting
Maven
刚解压一个新的idea,刚接触到这个工具,第一步配置setting
目录: File | Settings | Editor | File Encodings
File | Settings | Build, Execution, Deployment | Build Tools | Maven | Importing
配置Maven路径
File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner
配置Runner VM -options: -DarchetypeCatalog=local
这样构建Maven会快很多
关于本地的Maven Setting.xml 的配置 可以自行百度进行配置
SDKs
配置自己安装的jdk路径
项目文件编码
目录:
File | Settings | Editor | File Encodings
隐藏.idea文件夹和.iml等文件
目录:setting --》Editor --》File Types
这里还隐藏了springboot项目中的.mvn,mvnw,mvnw.cmd,HELP.md
lgnore files and folders :
.hprof;.idea;.iml;.pyc;.pyo;.rbc;.yarb;~;.DS_Store;.git;.gitignore;.hg;.mvn;.svn;CVS;HELP.md;pycache;_svn;mvnw;mvnw.cmd;vssver.scc;vssver2.scc;
设置行号显示
目录:setting --》Editor --》General --》Appearance
操作:将“Show line numbers”勾选
Live Templates(预定义代码模板)
<template name="mainboot" value="public static void main(String[] args) { SpringApplication.run($end$.class,args); }" description="springboot启动类" toReformat="false" toShortenFQNames="true">
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_CODE" value="true" />
</context>
</template>
<template name="pdc" value="/** * $var1$ */ private Date $var2$;" description="private Date 带有注释" toReformat="false" toShortenFQNames="true">
<variable name="var1" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="var2" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="pic" value="/** * $var1$ */ private Integer $var2$;" description="private Integer 带有注释" toReformat="false" toShortenFQNames="true">
<variable name="var1" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="var2" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_CODE" value="true" />
</context>
</template>
<template name="psc" value="/** * $var1$ */ private String $var2$;" description="private String 带有注释" toReformat="false" toShortenFQNames="true">
<variable name="var1" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="var2" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_CODE" value="true" />
</context>
</template>
使用方式
on name=“JAVA_CODE” value=“true” />
> 使用方式

最后附上我的GitHub的idea备份 [github](https://github.com/Zephyr-Liu/ideaConfigBackups)