安装IntelliJ IDEA 2016.1.2版本后,在联网状态下激活。Help –> Register,选择lisence server,粘贴 地址http://idea.iteblog.com/key.php 到lisence server address中,点击discover server按钮即可。
修改 IntelliJ IDEA 2016.1.2/bin/idea.exe.vmoptions【记得备份】文件,如果是x64系统,修改 idea64.exe.vmoptions文件中的参数,具体参数如下:
-Xms512m
-Xmx750m
-Xmn264m
-XX:MaxPermSize=350m
-XX:PermSize=128m
-XX:ReservedCodeCacheSize=240m
-Xverify:none
-Xnoclassgc
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-server
-Dsun.io.useCanonCaches=false
-Dsun.awt.keepWorkingSetOnMinimize=true
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
注:
-Xms512m 设置初时的内存大小,提高Java程序的启动速度
-Xmx750m 设置最大内存数,提高该值,可以减少内存Garage收集的频率,提高程序性能
-Xverify:none 关闭Java字节码验证,从而加快了类装入的速度,并使得在仅为验证目的而启动的过程中无需装入类,缩短了启动时间
-XX:+UseParNewGC 使用并行收集算法
-server 控制内存garage方式,这样你无需在花一到两分钟等待内存garage的收集
-Dsun.awt.keepWorkingSetOnMinimize=true 可以让IDEA最小化到任务栏时依然保持以占有的内存,当你重新回到IDEA,能够被快速显示,而不是由灰白的界面逐渐显现整个界面,加快回复到原界面的速度。
File -> Settings -> Appearance & Behavior -> Appearance -> 勾选 Override default fonts by (not Recommended)
Name:微软雅黑、Size:12、Presentation Mode:24
勾选 Show tool window bars
File -> Settings -> Appearance & Behavior -> System Settings -> Startup/Shutdown 标签项 -> 去掉 Reopen last project on startup
File -> Settings -> Appearance & Behavior -> System Settings -> Startup/Shutdown 标签项 -> 去掉 Confirm application exit
File -> Settings -> Appearance & Behavior -> System Settings -> Project Opening 标签项 -> 勾选 Open project in ths same window
File -> Settings -> Appearance & Behavior -> System Settings -> Synchronization 标签项 ->
全部勾选包括 Save files automatically.. 然后设置30 sec.
File -> Settings -> Appearance & Behavior -> System Settings -> Updates -> 去掉 Automatically check updates for…
File -> Settings -> Appearance & Behavior -> System Settings -> Usage Statistics -> 去掉 Allow sending…
=======================================================================================================
File -> Settings -> Editor -> General -> Mouse 标签项 -> 勾选 Change font size (Zoom) with Ctrl + Mouse Wheel
File -> Settings -> Editor -> General -> Virtual Space 标签项 -> 去掉 Allow placement of caret after end of line
File -> Settings -> Editor -> General -> Virtual Space 标签项 -> 勾选 Show virtual space at file bottom
File -> Settings -> Editor -> General -> Other 标签项 -> 设置 Srip trailing spaces on Save,下拉选择 All
File -> Settings -> Editor -> General -> Scrolling 标签项 -> 去掉 Smooth scrolling
File -> Settings -> Editor -> General -> Auto Import -> 勾选 Optimize imports on the fly、Add unambiguous imports on the fly
File -> Settings -> Editor -> General -> Appearance -> 勾选 Show line numbers
File -> Settings -> Editor -> General -> Appearance -> 勾选 Show whitespaces
File -> Settings -> Editor -> General -> Code Completion -> Code Completion 标签项 -> 设置 Case sensitive completion:none
勾选 Autopopup documentation in (ms) : 200,勾选 Parameter in (ms) :200
File -> Settings -> Editor -> General -> Code Folding -> 去掉 One-line methods
File -> Settings -> Editor -> General -> Editor Tabs -> Tab Appearance 标签项 -> 勾选 Mark modified tabs with asterisk
File -> Settings -> Editor -> General -> Editor Tabs -> Tab Closing Policy 标签项 -> 设置 Tab limit :20
File -> Settings -> Editor -> General -> Smart Keys -> 去掉 Reformat block on typing ‘}’
设置 Reformat on paste :None
File -> Settings -> Editor -> Colors & Fonts -> Font -> 选择 Darcula 设计,点击 Save As备份一套然后编辑
修改 Primary font 的字体,勾选 Show only monospaced fonts,只显示等宽字体
File -> Settings -> Editor -> Colors & Fonts -> General -> Editor -> Caret row -> Background
File -> Settings -> Editor -> Inspections -> Spelling -> Typo -> 去掉 Process code、Process literals、Process comments
File -> Settings -> Editor -> File Encodings -> 设置 IDE Encoding、Project Encoding、Defalut encoding for properties files
勾选 Transparent native -to-ascii conversion
File -> Settings -> Editor -> File Types -> Ignore files and folders -> 添加 .iml;.idea;.classpath;.project;*.settings;target;
=======================================================================================================
File -> Settings -> Plugins -> 如:ASP、Cloud Foundry integration、CloudBees integration、CVS Integration、Flash/Flex Support、
TFS Integration、Google App Engine Integration
=======================================================================================================
File -> Export Settings