一、springcloud项目如何将多个服务放到services中一起启动
1、打开ideal,再view -> Tool Windows -> services

2、在services界面 找到 run configuration type -> springboot即可

二、配置临时的启动参数
1、在edit configurations中

2、选择相应的服务,再VM options中配置

三、调整idea的虚拟内存
1、在 Help -> change memory settings 调整即可

四、设置提示词忽略大小写
1、File -> settings -> Editor -> General -> code Completion 去掉 Math case

五、设置注释的快捷参数
1、类注释
打开 IDEA 的 Settings -> Editor->File and Code Templates -> Files,点击右边 Files 选项卡下面的 Class,在其中添加图中红框内的内容

或者
打开 IDEA 的 Settings -> Editor->File and Code Templates -> includes,在File Header中输入图中内容

2、方法注释
打开 IDEA 的 Settings -> Editor->Live Templates,新建 Template Group,在新建的temlate下创建Live Template具体内容如图


param和return内容:
groovyScript("def result = '';def params = \"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] != '')result+=' * @param '+ params[i] + ((i < params.size()- 1) ? '\\r\\n' : '')}; return result == '' ? null : '\\r\\n' + result ", methodParameters())
groovyScript("return \"${_1}\" == 'void' ? null : '\\r\\n * @return ' + \"${_1}\"", methodReturnType())
六、可设置多行tab
打开 IDEA 的 Settings -> Editor-> General -> Editor Tabs,去掉 Show tabs in one space即可

七、快速找到 {}的定位
ctrl+[ ctrl+]
可以快速跳转到方法大括号的起止位置,配合方法分隔符使用,不怕找不到方法在哪儿分割了
八、查询的小技巧
ctrl+shift+alt+n 或者 ctrl+shift+r
ctrl+shift+enter代码补齐
ctrl+alt+h 查看哪些地方调用
ctrl+alt+o 去除无用的包
free mybatis Tool 让mapper和xml相互跳转