• IDEA常用快捷键


    我的IDEA版本是2016.3.6,设置的Keymap的类型为Eclipse

    这里把较为实用的快捷键记录下来,以备后用。

    Editor Actions

    • Add Rectangular Selection on Mouse Drag | Ctrl + Alt + Shift + Button1 Click备注:需要先按住 Ctrl + Alt + Shift 后按下鼠标左键,切记不可提前让光标活动于选中区域。)
    • Delete to Line End | Ctrl + Shift + Delete
    • Down with Selection | Shift + Down
    • Complete Current Statement | Ctrl + Shift + Enter
    • Create Rectangular Selection | Alt + Shift + Button2 Click
    • Delete to Word End | Ctrl + Delete
    • Duplicate Entire Lines | Ctrl + Alt + Down
    • Join Lines | Ctrl + Shift + J
    • Left with Selection | Shift + Left
    • Move Caret to Line End | End
    • Move Caret to Line End with Selection | Shift + End
    • Move Caret to Line Start | Home
    • Move Caret to Line Start with Selection | Shift + Home
    • Move Caret to Matching Brace | Ctrl + Shift + P
    • Move Caret to Page Bottom with Selection | Ctrl + Shift + Page Down
    • Move Caret to Page Top with Selection | Ctrl + Shift + Page Up
    • Move Caret to Next Word | Ctrl + Right
    • Move Caret to Next Word with Selection | Ctrl + Shift + Right
    • Page Down with Selection | Shift + Page Down
    • Page Up with Selection | Shift + Page Up
    • Move Caret to Previous Word | Ctrl + Left
    • Move Caret to Previous Word with Selection | Ctrl + Shift + Left
    • Right with Selection | Shift + Right
    • Scroll Down | Ctrl + Down
    • Scroll to Center | Ctrl + M
    • Scroll Up | Ctrl + Up
    • Start New Line | Shift + Enter
    • Start New Line Before Current | Ctrl + Alt + Enter
    • Move Caret to Text End | Ctrl + End
    • Move Caret to Text End with Selection | Ctrl + Shift + End
    • Move Caret to Text Start | Ctrl + Home
    • Move Caret to Text Start with Selection | Ctrl + Shift + Home
    • Toggle Case | Ctrl + Shift + U Ctrl + Shift + X Ctrl + Shift + Y
    • Column Selection Mode | Ctrl + Shift + Insert
    • Shrink Selection | Alt + Shift + Down
    • Unindent Line or Selection | Shift + Tab
    • Up with Selection | Shift + Up

    Edit

    • Undo | Ctrl + Z
    • Redo | Ctrl + Y
    • Cut | Ctrl + X Shift + Delete
    • Copy | Ctrl + C Ctrl + Insert
    • Copy Paths | Ctrl + Shift + C
    • Paste | Ctrl + V Shift + Insert
    • Paste from History | Ctrl + Shift + V Shift + Shift + Insert

    Find

    • Replace | Ctrl + F
    • Find Next / Move to Next Occurrence | Ctrl + K
    • Find Previous / Move to Previous Occurrence | Ctrl + Shift + K
    • Find Word at Caret | Ctrl + F12
    • Select All Occurrences | Ctrl + Alt + Y
    • Add Selection for Next Occurrence | Alt + Y
    • Unselect Occurrence | Alt + Shift + Y
    • Find in Path | Ctrl + H
    • Find Usages | Ctrl + G

    Other

    • Browse Console History | Ctrl + Alt + E
    • Class Name Completion | Ctrl + Alt + Space
    • Open In New Editor Window | Shift + Enter
    • Zoom In | NumPad + Equals
    • Zoom Out | NumPad - Minus

    为了统一起见,同时也是为了文档支持因素的考虑,建议使用default模式的快捷键

    IDEA的快捷输入

    • 快速输入 public static void main( String[] args ) { } 只需输入 psvm 后回车即可。
    • 快速输入 System.out.println() 只需输入sout后按Tab键即可。(注:必须在main函数内才使用有效)
    • 快速输入 for 循环 只需输入 fori 然后按下Tab键即可

    查看方法注释,点击进入源码即可,若想和eclipse一样鼠标停留即可出现注释提示,开启方法为:

    Preferences->Editor->General->Other->Show quick documentation on mouse move 钩上

  • 相关阅读:
    资料收集
    layui 设计资源——2.0 版本的 Axure 组件包,产品交互设计利器
    照片自动按时间分类助手
    回顾2017,规划2018,展望2019
    coder/programmer engineer Chirf Technology Offcer
    新手开公司创业,这些坑千万别掉进去!
    ASP.NET MVC中的Global.asax文件
    SQLServer(MSSQL)、MySQL、SQLite、Access相互迁移转换工具 DB2DB v1.0
    快速开发之代码生成器(asp.net mvc4 + easyui + knockoutjs)
    PowerDesigner逆向工程导入MYSQL数据库总结
  • 原文地址:https://www.cnblogs.com/ioveNature/p/7771574.html
Copyright © 2020-2023  润新知