intellij-tips.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="generator" content="Asciidoctor 2.0.15">
  8. <title>IntelliJ IDEA Tips and Tricks</title>
  9. <link rel="stylesheet" href="css/site.css">
  10. <link href="css/custom.css" rel="stylesheet">
  11. <script src="js/setup.js"></script><script defer src="js/site.js"></script>
  12. </head>
  13. <body class="article"><div id="banner-container" class="container" role="banner">
  14. <div id="banner" class="contained" role="banner">
  15. <div id="switch-theme">
  16. <input type="checkbox" id="switch-theme-checkbox" />
  17. <label for="switch-theme-checkbox">Dark Theme</label>
  18. </div>
  19. </div>
  20. </div>
  21. <div id="tocbar-container" class="container" role="navigation">
  22. <div id="tocbar" class="contained" role="navigation">
  23. <button id="toggle-toc"></button>
  24. </div>
  25. </div>
  26. <div id="main-container" class="container">
  27. <div id="main" class="contained">
  28. <div id="doc" class="doc">
  29. <div id="header">
  30. <h1>IntelliJ IDEA Tips and Tricks</h1>
  31. </div>
  32. <div id="content">
  33. <div class="ulist">
  34. <ul>
  35. <li>
  36. <p>Scratch File</p>
  37. </li>
  38. <li>
  39. <p>Scratch Buffer</p>
  40. </li>
  41. <li>
  42. <p>选择历史粘贴(ctrl + shift + v)</p>
  43. </li>
  44. <li>
  45. <p>Select All Occurrences(找到所有与当前选中单次相同的单词并选中,然后可以进行批量修改)</p>
  46. </li>
  47. <li>
  48. <p>Language Expression (Check Regexp)</p>
  49. </li>
  50. <li>
  51. <p>parameter info</p>
  52. </li>
  53. <li>
  54. <p>surround with</p>
  55. </li>
  56. <li>
  57. <p>join line</p>
  58. </li>
  59. <li>
  60. <p>Hide All Tool Window</p>
  61. </li>
  62. <li>
  63. <p>Add or Remove Caret</p>
  64. </li>
  65. <li>
  66. <p>Inspect Code</p>
  67. </li>
  68. <li>
  69. <p>http文件</p>
  70. </li>
  71. <li>
  72. <p>recent files(ctrl + e) show edited files</p>
  73. </li>
  74. <li>
  75. <p>recent location (ctrl + shift + e)</p>
  76. </li>
  77. <li>
  78. <p>go to Test(ctrl + shift + t)</p>
  79. </li>
  80. <li>
  81. <p>navigate back/forward (ctrl + alt + 左右箭头)</p>
  82. </li>
  83. <li>
  84. <p>find usage</p>
  85. </li>
  86. <li>
  87. <p>next highlighted error alt + N</p>
  88. </li>
  89. <li>
  90. <p>Reformatting Code Ctrl + Alt + L</p>
  91. </li>
  92. <li>
  93. <p>Chained method calls 格式化长的方法调用,常用于stream或者lambda或者Builder</p>
  94. </li>
  95. <li>
  96. <p>Project alt + 1</p>
  97. </li>
  98. <li>
  99. <p>run anything 双击ctrl</p>
  100. </li>
  101. <li>
  102. <p>insert live template (Ctrl + Alt + Shift + J)</p>
  103. </li>
  104. <li>
  105. <p>Ctrl + Shift + Enter Complete Current Statement 效果是马上跳转到行尾,并且如果行尾没有分号自动添加分号</p>
  106. </li>
  107. </ul>
  108. </div>
  109. <div class="paragraph">
  110. <p><a href="https://blog.jetbrains.com/idea/2020/03/top-15-intellij-idea-shortcuts/">top-15-intellij-idea-shortcuts</a></p>
  111. </div>
  112. <div class="paragraph">
  113. <p><a href="https://blog.jetbrains.com/idea/2020/06/code-formatting/">code-formatting</a></p>
  114. </div>
  115. </div>
  116. <div id="footer">
  117. <div id="footer-text">
  118. Last updated 2024-03-18 05:44:42 UTC
  119. </div>
  120. </div>
  121. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script>
  122. <script>
  123. if (!hljs.initHighlighting.called) {
  124. hljs.initHighlighting.called = true
  125. ;[].slice.call(document.querySelectorAll('pre.highlight > code')).forEach(function (el) { hljs.highlightBlock(el) })
  126. }
  127. </script>
  128. <script src="https://utteranc.es/client.js"
  129. repo="pxzxj/articles"
  130. issue-term="title"
  131. label="utteranc"
  132. theme="github-light"
  133. crossorigin="anonymous"
  134. async>
  135. </script>
  136. </div>
  137. </div>
  138. </div>
  139. </body>
  140. </html>