@@ -198,15 +198,15 @@ <h1>IntelliJ IDEA常用配置</h1>
198198
199199 < span class ="tag ">
200200
201- < a href ="/tags/IDEA/ " style ="color: #00bcd4 "> IDEA</ a >
201+ < a href ="/tags/IDEA/ " style ="color: #ff7d73 "> IDEA</ a >
202202 </ span >
203203
204204 </ span >
205205
206206 </ div >
207207
208208 < div class ="content " v-pre >
209- < p > 整理一些开发中常用的配置,基于idea2022.2.3 ,版本过低的idea配置可能与此有差异</ p >
209+ < p > 整理一些开发中常用的配置,基于idea2023.3.6 ,版本过低的idea配置可能与此有差异</ p >
210210< h1 id ="一、idea启动参数 "> < a href ="#一、idea启动参数 " class ="headerlink " title ="一、idea启动参数 "> </ a > 一、idea启动参数</ h1 > < p > 在idea安装目录下的\bin\idea64.exe.vmoptions文件中,添加以下配置,绝大多数情况下能够避免控制台日志乱码</ p >
211211< pre > < code class ="text "> -Dfile.encoding=UTF-8
212212</ code > </ pre >
@@ -218,12 +218,18 @@ <h1 id="一、idea启动参数"><a href="#一、idea启动参数" class="headerl
218218< h1 id ="二、idea编码配置 "> < a href ="#二、idea编码配置 " class ="headerlink " title ="二、idea编码配置 "> </ a > 二、idea编码配置</ h1 > < p > 打开< code > File-》Settings-》Editor-》File Encoding</ code > ,按照下图所示修改配置</ p >
219219< img src ="/2022/11/11/IntelliJ-IDEA%E5%B8%B8%E7%94%A8%E9%85%8D%E7%BD%AE/image-20221111135532195.png " class ="" title ="image-20221111135532195 ">
220220
221- < h1 id ="三、idea编辑风格配置 "> < a href ="#三、idea编辑风格配置 " class ="headerlink " title ="三、idea编辑风格配置 "> </ a > 三、idea编辑风格配置</ h1 > < p > 打开< code > File-》Settings-》Editor-》Code Style-》Java-》Code Generation</ code > ,按照下图所示修改配置。</ p >
221+ < h1 id ="三、idea编辑风格配置 "> < a href ="#三、idea编辑风格配置 " class ="headerlink " title ="三、idea编辑风格配置 "> </ a > 三、idea编辑风格配置</ h1 > < p > 打开< code > File-》Settings-》Editor-》Code Style-》Java-》Code Generation</ code > ,按照下图所示修改配置。同理修改Kotlin的配置 </ p >
222222< p > 1.使行注释与当前代码缩进对齐</ p >
223223< p > 2.在行注释起始位置插入一个空格</ p >
224224< p > 3.使块注释与当前代码缩进对齐</ p >
225225< img src ="/2022/11/11/IntelliJ-IDEA%E5%B8%B8%E7%94%A8%E9%85%8D%E7%BD%AE/image-20221111153317043.png " class ="" title ="image-20221111153317043 ">
226226
227+ < img src ="/2022/11/11/IntelliJ-IDEA%E5%B8%B8%E7%94%A8%E9%85%8D%E7%BD%AE/image-20240324183837865.png " class ="" title ="image-20240324183837865 ">
228+
229+ < h1 id ="四、修改Registry "> < a href ="#四、修改Registry " class ="headerlink " title ="四、修改Registry "> </ a > 四、修改Registry</ h1 > < p > 快捷键Ctrl+Shift+A,输入Registry,打开idea的注册表。</ p >
230+ < p > 勾选< code > decompiler.dump.original.lines</ code > ,使反编译的代码显示行号,</ p >
231+ < p > 勾选< code > ide.browser.jcef.gpu.disable</ code > ,禁用gpu加速,解决Markdown文档无法渲染出来或者渲染慢的问题。</ p >
232+ < img src ="/2022/11/11/IntelliJ-IDEA%E5%B8%B8%E7%94%A8%E9%85%8D%E7%BD%AE/image-20240324191204897.png " class ="" title ="image-20240324191204897 ">
227233
228234 </ div >
229235
0 commit comments