IDEA设置配置


这篇博客用于记录 我的IDEA的一些原有配置信息位置 及 恢复

IDEA2020.1的配置文件路径:

C:\Users\用户名\AppData\Roaming\JetBrains\IntelliJIdea2020.1\

fileTemplates.

文件注释模板

/**
 * @author liuminkai
 * @version 1.0
 * @datetime ${DATE} ${TIME}
 * @decription ${DECRIPTION}
 **/

templates.

行注释模板

<templateSet group="other">
  <template name="syso" value="System.out::println" description="a lambda expression" toReformat="false" toShortenFQNames="true">
    <context>
      <option name="JAVA_EXPRESSION" value="true" />
    </context>
  </template>
  <template name="twr" value="try() {&#10;&#10;}" description="try-with-resources" toReformat="false" toShortenFQNames="true">
    <context>
      <option name="JAVA_EXPRESSION" value="true" />
    </context>
  </template>
  <template name="**" value="**&#10; * $desc$&#10; * @date $date$ $time$&#10;$params$&#10; * @return $return$&#10; * @throw &#10; **/" shortcut="ENTER" description="" toReformat="false" toShortenFQNames="true">
    <variable name="desc" expression="" defaultValue="" alwaysStopAt="true" />
    <variable name="date" expression="date()" defaultValue="" alwaysStopAt="true" />
    <variable name="time" expression="time()" defaultValue="" alwaysStopAt="true" />
    <variable name="params" expression="groovyScript(&quot;def result=''; def params=\&quot;${_1}\&quot;.replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i &lt; params.size(); i++) {result+=' * @param ' + params[i] + ((i &lt; params.size() - 1) ? '\\n' : '')}; return result&quot;, methodParameters()) " defaultValue="" alwaysStopAt="true" />
    <variable name="return" expression="methodReturnType()" defaultValue="" alwaysStopAt="true" />
    <context>
      <option name="JAVA_CODE" value="true" />
    </context>
  </template>
</templateSet>

快捷键.

<application>
  <component name="KeymapManager">
    <active_keymap name="Eclipse copy" />
  </component>
</application>

<keymap version="1" name="Eclipse copy" parent="Eclipse">
  <action id="Back">
    <mouse-shortcut keystroke="button4" />
  </action>
  <action id="Console.Execute.Multiline" />
  <action id="Console.Jdbc.Execute" />
  <action id="Console.Jpa.GenerateSql" />
  <action id="Diff.NextChange">
    <keyboard-shortcut first-keystroke="ctrl f6" />
    <keyboard-shortcut first-keystroke="ctrl page_down" />
  </action>
  <action id="Diff.PrevChange">
    <keyboard-shortcut first-keystroke="shift ctrl f6" />
    <keyboard-shortcut first-keystroke="ctrl page_up" />
  </action>
  <action id="DirDiffMenu.SynchronizeDiff.All" />
  <action id="EditorChooseLookupItemCompleteStatement" />
  <action id="EditorCompleteStatement" />
  <action id="EditorSplitLine" />
  <action id="EditorStartNewLine">
    <keyboard-shortcut first-keystroke="ctrl enter" />
  </action>
  <action id="EditorStartNewLineBefore">
    <keyboard-shortcut first-keystroke="ctrl alt enter" />
    <keyboard-shortcut first-keystroke="shift ctrl enter" />
  </action>
  <action id="FindInPath">
    <keyboard-shortcut first-keystroke="shift f" />
  </action>
  <action id="Forward">
    <mouse-shortcut keystroke="button5" />
  </action>
  <action id="Generate">
    <keyboard-shortcut first-keystroke="alt insert" />
    <keyboard-shortcut first-keystroke="alt space" />
  </action>
  <action id="Groovy.Shell.Execute" />
  <action id="HighlightUsagesInFile">
    <keyboard-shortcut first-keystroke="shift ctrl f7" />
  </action>
  <action id="JumpToLastChange">
    <keyboard-shortcut first-keystroke="ctrl q" />
    <keyboard-shortcut first-keystroke="alt left" />
  </action>
  <action id="JumpToNextChange">
    <keyboard-shortcut first-keystroke="alt right" />
  </action>
  <action id="KotlinShellExecute" />
  <action id="NextTab">
    <keyboard-shortcut first-keystroke="ctrl f6" />
    <keyboard-shortcut first-keystroke="ctrl page_down" />
    <keyboard-shortcut first-keystroke="ctrl alt right" />
  </action>
  <action id="OverrideMethods">
    <keyboard-shortcut first-keystroke="shift alt o" />
  </action>
  <action id="PreviousTab">
    <keyboard-shortcut first-keystroke="shift ctrl f6" />
    <keyboard-shortcut first-keystroke="ctrl page_up" />
    <keyboard-shortcut first-keystroke="ctrl alt left" />
  </action>
  <action id="TypeHierarchy">
    <keyboard-shortcut first-keystroke="f4" />
    <keyboard-shortcut first-keystroke="ctrl h" />
  </action>
  <action id="ViewSource" />
</keymap>

文章作者: liuminkai
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 liuminkai !
评论

Related Issues not found

Please contact @liuminkai-blog to initialize the comment

 上一篇
javase -- 关键字 和 保留字 javase -- 关键字 和 保留字
关键字 (keyword). 被java语言赋予了特殊含义,用做专门用途的字符串(单词) 关键字所有字母都为小写 java关键字 abstract assert boolean break byte case c
2020-07-18
下一篇 
IEDA文档注释模板和方法注释模板 IEDA文档注释模板和方法注释模板
文档注释模板./** * @author liuminkai * @version 1.0 * @datetime ${DATE} ${TIME} * @decription ${DECRIPTION} **/ 方法注释模板.*
2020-07-14 liuminkai