一:2019.3.3版本实例讲解
1.百度网盘下载破解文件
1.链接:https://pan.baidu.com/s/1FbZdigi0yd9uZktMmBf8gw
提取码:goyi
2.目录结构
- 修改jar包位置
2.断开网络连接
1.打开idea进行如下操作:
2.-javaagent:E:\software\idea2019\bin\jetbrains-agent.jar
添加完成后点击“save”进行保存,然后关闭idea,必须关闭一下哦
注:-javaagent:E:\software\idea2019\bin\jetbrains-agent.jar
此行内容必须保证正确性,否则idea将打不开。
但如果一不小心手误写错啦,也别急着卸载,既然改配置了就必然会有一个文件来进行保存,经过小kang的努力侦查,发现idea在安装的时候会生成如下图目录,
按图操作便可解此难题呦!!!
3.强力破解
再次打开idea选择–> Help -> Register… , 在弹出框内选择Activation code,并在下方框内填写注册码
3AGXEJXFK9-eyJsaWNlbnNlSWQiOiIzQUdYRUpYRks5IiwibGljZW5zZWVOYW1lIjoiaHR0cHM6Ly96aGlsZS5pbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIjoiMjA4OS0wNy0wNyIsInBhaWRVcFRvIjoiMjA4OS0wNy0wNyJ9LHsiY29kZSI6IkRQTiIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJQUyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJHTyIsImZhbGxiYWNrRGF0ZSI6IjIwODktMDctMDciLCJwYWlkVXBUbyI6IjIwODktMDctMDcifSx7ImNvZGUiOiJET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GA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQBonMu8oa3vmNAa4RQP8gPGlX3SQaA3WCRUAj6Zrlk8AesKV1YSkh5D2l+yUk6njysgzfr1bIR5xF8eup5xXc4/G7NtVYRSMvrd6rfQcHOyK5UFJLm+8utmyMIDrZOzLQuTsT8NxFpbCVCfV5wNRu4rChrCuArYVGaKbmp9ymkw1PU6+HoO5i2wU3ikTmRv8IRjrlSStyNzXpnPTwt7bja19ousk56r40SmlmC04GdDHErr0ei2UbjUua5kw71Qn9g02tL9fERI2sSRjQrvPbn9INwRWl5+k05mlKekbtbu2ev2woJFZK4WEXAd/GaAdeZZdumv8T2idDFL7cAirJwcrbfpawPeXr52oKTPnXfi0l5+g9Gnt/wfiXCrPElX6ycTR6iL3GC2VR4jTz6YatT4Ntz59/THOT7NJQhr6AyLkhhJCdkzE2cob/KouVp4ivV7Q3Fc6HX7eepHAAF/DpxwgOrg9smX6coXLgfp0b1RU2u/tUNID04rpNxTMueTtrT8WSskqvaJd3RH8r7cnRj6Y2hltkja82HlpDURDxDTRvv+krbwMr26SB/40BjpMUrDRCeKuiBahC0DCoU/4+ze1l94wVUhdkCfL0GpJrMSCDEK+XEurU18Hb7WT+ThXbkdl6VpFdHsRvqAnhR2g4b+Qzgidmuky5NUZVfEaZqV/g==
4.常用配置
–> file->settings下修改
1.设置主题
Appearance & Behavior(外观和行为)
2.设置鼠标滚轮修改字体大小
3.自动导包
4.显示行号和方法间的分隔符
5.忽略大小写提示
6.取消单行tabs的操作
7.修改默认的字体
8.修改当前主题的字体
9.代码注释的字体颜色
10.类的文档注释
11.设置版权
版权所有(C),康康小课堂,所有权利保留。
项目名: $module.name
文件名: $file.fileName
模块说明:
修改历史:
$today.format(“yyyy-MM-dd”) -kang - 创建。
12.项目文件编码
13.当前源文件的编码
14.自动编译
15.代码水平或垂直显示
16.设置快捷键
17.修改快捷键
18.导入已有快捷键
19.代码模板
5.常用插件(待补充)
- Alibaba Java Coding Guideline
- Easy Code
- FindBugs-idea
- FreeMarker support
- MyBatis Log Plugin
- Rainbow Brackets
- Translation
- VisualVMLauncher
- Lombok
- Free Mybatis plugin
- leetcode editor
- Maven helper
- Spring Boot
6.Eclipse常用快捷键
- 执行 (run) alt+r
- 提示补全alt+/
- 单行注释 ctrl + /
- 多行注释 ctrl + shift + /
- 向下复制一行 (Duplicate Lines) ctrl+alt+down
- 删除一行或选中行 (delete line) ctrl+d
- 向下移动行 (move statement down) alt+down
- 向上移动行 (move statement up) alt+up
- 向下开始新的一行 (start new line) shift+enter
- 向上开始新的一行 (Start New Line before current) ctrl+shift+enter
- 如何查看源码 (class)
- ctrl + 选中指定的结构或ctrl + shift + t
- 查看继承关系 (type hierarchy) F4
- 格式化代码 (reformat code) ctrl+shift+F
- 提示方法参数类型 (Parameter Info) ctrl+alt+/
- 复制代码 ctrl + c
- 撤销 ctrl + z
- 反撤销 ctrl + y
- 剪切 ctrl + x
- 粘贴 ctrl + v
- 保存 ctrl + s
- 全选 ctrl + a
- 查看类的结构:类似于 eclipse 的 outline ctrl+o
- 生成构造器/get/set/toString alt +shift + s
- 收起所有的方法(collapse all) alt + shift + c
- 打开所有方法(expand all) alt+shift+x
- 生成 try-catch 等(surround with) alt+shift+z
- 局部变量抽取为成员变量(introduce field) alt+shift+f
- 查找/替换(当前) ctrl+f
- 查找(全局) ctrl+h
- 查找文件 double Shift
- 查看类的继承结构图(Show UML Diagram) ctrl + shift + u
- 查看方法的多层重写结构(method hierarchy) ctrl+alt+h
- 抽取方法(Extract Method) alt+shift+m
- 打开最近修改的文件(Recently Files) ctrl+E
- 关闭当前打开的代码栏(close) ctrl + w
- 关闭打开的所有代码栏(close all) ctrl + shift + w
- 快速搜索类中的错误(next highlighted error) ctrl + shift + q
7.热部署
1、开启IDEA的自动编译(静态)
具体步骤:打开顶部工具栏 File -> Settings -> Default Settings -> Build -> Compiler 然后勾选 Build project automatically 。
2、开启IDEA的自动编译(动态)
具体步骤:同时按住 Ctrl + Shift + Alt + / 然后进入Registry ,勾选自动编译并调整延时参数。
compiler.automake.allow.when.app.running -> 勾选
compile.document.save.trigger.delay -> 100
compile.automake.trigger.delay -> 100
3、开启IDEA的热部署策略(非常重要)
具体步骤:顶部菜单- >Edit Configurations->SpringBoot插件->目标项目->勾选热更新。
4、关闭浏览器缓存(重要)
打开谷歌浏览器,打开F12的Network选项栏,然后勾选【✅】Disable cache 。
5、去除热部署插件
若项目为老项目依赖比较臃肿,则推荐去除热部署依赖,改用每次修改后手动更新– ctrl + shift + f9