一.卸载
卸载之后分别删除C/用户/11921/AppData/中的Local和Roaming内的JetBrains。
二.安装
安装时把破解程序放在同一个文件夹内。
三.Idea的设置
1.默认启动项目配置--Appearance&Behavior-- System Settings中Reopen project on startup 以及ask
2.取消自动更新--Appearance&Behavior--System Settings--updatas中 关闭check ide updataes
3.注释的字体颜色--Editor--Color Scheme--Languages Defaults中Commments--Doc comments--text 。Block comment:修改多行注释的字体颜色,Block comment:修改多行注释的字体颜色,Line comment:修改单行注释的字体颜色。
4.显示行号和方法分隔符--Editor--Gemeral--Apperance中勾选 Show line number(显示行号)与Show method separators(显示方法之间的分隔符) 。
5.代码智能提示--Editor--Gemeral-Code completion 取消勾选Match case
6.自动导包--Editor--Gemeral--Auto import 勾选 Add unambiguous imports on the fly和 Optimize imports on the fly。
7.设置项目文件编码--Editor--Flie Encodings
8.设置控制台的字符编码 --Editor--General--Console 修改成UTF-8
9.修改类头的文档注释信息--Editor--File and Code Templates,比如
/**
* ClassName: ${NAME}
* Package: ${PACKAGE_NAME}
* Description:
* @Author BuTang
* @Create ${DATE} ${TIME}
* @Version 1.0
*/
常用的预设变量
${PACKAGE_NAME} - the name of the target package where the new class or interface will be created.
${PROJECT_NAME} - the name of the current project.
${FILE_NAME} - the name of the PHP file that will be created.
${NAME} - the name of the new file which you specify in the New File dialog box during the file creation.
${USER} - the login name of the current user.
${DATE} - the current system date.
${TIME} - the current system time.
${YEAR} - the current year.
${MONTH} - the current month.
${DAY} - the current day of the month.
${HOUR} - the current hour.
${MINUTE} - the current minute.
${PRODUCT_NAME} - the name of the IDE in which the file will be created.
${MONTH_NAME_SHORT} - the first 3 letters of the month name. Example: Jan, Feb, etc.
${MONTH_NAME_FULL} - full name of a month. Example: January, February, etc.
10.设置自动编译--Build,Execution,Deployment--Compiler中勾选Build project automatically和Compile independent modules in parallel
11.关闭双击shift搜索--Advanced Settings中搜索double然后关闭Disable double modifier key shortcuts
12.单元测试
在File-Project Structure中添加Libraries库
查看Modules--Dependences中的junit是否是Compile(编译时生效)
别的Modules如果需要添加,在Dependences中添加
在Help-Edit Custom VM Options中最后加入一行:-Deditable.java.test.console=true
在Editor--Live Temolates中添加test测试方法模板(注意最下方应用范围)