快捷键:→→→→→→→→→翻译:→→→→→→→→→具体名称
"ALT+/":→→→→→→→→→"补全"→→→→→→→→→"Cyclic Expand Word/循环扩展字"
"ALT+Enter":→→→→→→→→→"修复错误"→→→→→→→→→"Show Context Actions/显示上下文操作"
"CTRL+/":→→→→→→→→→"注释"→→→→→→→→→"Comment with Line Comment/带行注释的注释"
"CTRL+ALT+V":→→→→→→→→→"补全=代码"→→→→→→→→→"Introduce Variable.../引入变量。。。"
"CTRL+P":→→→→→→→→→"显示方法参数"→→→→→→→→→"Parameter Info/参数信息"
"CTRL+SHIFT+Z":→→→→→→→→→"反撤销"→→→→→→→→→"Redo/重做"
"ALT+INS":→→→→→→→→→"构造器,get、set方法"→→→→→→→→→"Generate.../生成。。。"
"CTRL+Space":→→→→→→→→→"提示代码"→→→→→→→→→"Basic/基本"
"CTRL+O":→→→→→→→→→"查看所有父类"→→→→→→→→→"Override Methods.../重写方法。。。"
"CTRL+F12;ALT+7":→→→→→→→→→"查看所有方法"→→→→→→→→→"File Structure/文件结构"
"CTRL+H":→→→→→→→→→"查看选中类的所有父类"→→→→→→→→→"Type Hierarchy/类型层次结构"
"CTRL+ALT+B":→→→→→→→→→"查看选中类,接口的实现类,子类"→→→→→→→→→"Go to Implementation(s)/转到实施"
"CTRL+ALT+F7":→→→→→→→→→"查看方法在哪里被调用了"→→→→→→→→→"Show Usages/显示用法"
"SHIFT+Enter":→→→→→→→→→"新建下一行空白"→→→→→→→→→"Start New Line/开始新行"
"CTRL+ALT+Enter":→→→→→→→→→"新建上一行空白"→→→→→→→→→"Start New Line Before Current/在当前行之前启动新行"
"CTRL+↑/↓":→→→→→→→→→"页面上下移动"→→→→→→→→→"Scroll Up/Scroll Down/向上/向下滚动"
"END":→→→→→→→→→"行的末尾"→→→→→→→→→"Move Caret to Line End"
"HOME":→→→→→→→→→"行的首位"→→→→→→→→→"Move Caret to Line Start"
"CTRL+ALT+T":→→→→→→→→→"try-catch快捷键"→→→→→→→→→"Surround With.../周围有。。。"
"CTRL+ALT+L":→→→→→→→→→"格式化代码,代码对齐"→→→→→→→→→"Reformat Code/重新格式化代码"
"CTRL+SHIFT+/":→→→→→→→→→"块注释"→→→→→→→→→"Comment with Block Comment"
"SHIFT+F6":→→→→→→→→→"一键修改所有变量名"→→→→→→→→→"Rename.../重命名。。。"
"CTRL+Q":→→→→→→→→→"查看提示窗口中方法的内容"→→→→→→→→→"Quick Documentation/快速文档"
"TAB":→→→→→→→→→"多行右移"
"SHIFT+TAB":→→→→→→→→→"多行左移"
"CTRL+N 或者 双击shift":→→→→→→→→→"打开搜索"
"CTRL+Y":→→→→→→→→→"删除整行"→→→→→→→→→"Delete Line/删除行"
"CTRL+D":→→→→→→→→→"复制整行到下一行"→→→→→→→→→"Delete Line/删除行"
***************************"下面是我自己修改过的快捷键"********************************
"CTRL+W":→→→→→→→→→"翻译指定内容"→→→→→→→→→"Translation插件"
"CTRL+E":→→→→→→→→→"调出翻译器"→→→→→→→→→"Translation插件"
插件选择:Idea插件安装和管理
"官方自带的中文IDEA插件":→→→→→→→→→"中文汉化IDEA插件"→→→→→→→→→"Chinese (Simplified) Language Pack"
"右键选择Translate,具体设置百度(推荐使用百度翻译)":→→→→→→→→→"中英文翻译插件"→→→→→→→→→"Translation"
"安装就行":→→→→→→→→→"彩虹括号插件"→→→→→→→→→"Rainbow Brackets"
"安装就行":→→→→→→→→→"提示使用对应快捷键插件"→→→→→→→→→"Key Promoter X"
"右键编码规范扫描":→→→→→→→→→"阿里巴巴代码规范插件"→→→→→→→→→"Alibaba Java Coding Guidelines"
"save设置里勾选第一类的第一个,第二类的前两个":→→→→→→→→→"自动保存,格式化插件"→→→→→→→→→"save actions"
"右键Get relevant examples":→→→→→→→→→"方法举例更多提示插件"→→→→→→→→→"Codota"
"安装就行":→→→→→→→→→"漂亮的进度条"→→→→→→→→→"Nyan Progress Bar"
附加的设置:类注释格式
/**
* 功能描述:
*
* @author 罗德 QQ1846555387 注:小写的
* @version 1.0
*/
or
/**
*@ClassName ${NAME}
*@Description TODO
*@Author 罗德
*@Date ${DATE} ${TIME}
*@Version 1.0
*/
方法注释
/**
* todo
*
$param$
$return$
* @author 罗德
* @date $date$
*/
参数
groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')}; return result", methodParameters())
返回
groovyScript("def returnType = \"${_1}\"; def result = '* @return: ' + returnType; return result;", methodReturnType());
- 第二个注释格式 : /**=> */
- 有时候//双斜杆的注释在其他地方是不能正常提示的,这样写为了在其他IDE可以提示,如vs
配置