Eclipse、IntelliJ IDEA常用的快捷键
来源:互联网 发布:淘宝手机首页素材 编辑:程序博客网 时间:2024/05/17 22:34
常用的快捷键
代码补全Ctrl + space
删除行Command + D
注释Command + /
导入包Command + shift + O
格式化代码Command + shift + F
运行Ctrl + Alt + R
Incremental SearchCommand + J 在编辑器中实现快速查找功能,通过上下箭头进行上下文搜索
Quick Definition Command + Y 它会弹窗显示建议列表中的方法定义的内容,如果你不确定要使用哪个方法
Find NextCommand + K
Find PreviousCommand + shift + K
详细方法、类Ctrl + 点击类名、方法
Ctrl+Alt+ left/right 返回至上次浏览的位置
Command + F12 类似eclipse 的ctrl + O的功能outline
调整界面为酷酷的黑色
Preferences=>Appearance=>theme=>Darcula
设置快捷键:
Preferences=>keymaps
自动补全:
Mac下默认是clt+space,可以使用keymaps=>Main menu=>Code=>Competion设置。比Eclipse好的地方是Spring、Maven的xml,乃至freemarker模板以及iBatis的sqlmap都支持高亮和自动补全。
去除自动补全的大小写敏感:
不知道多少童鞋和我一样被Eclipse惯坏了,使用自动补全完全不注意大小写的,IntelliJ默认区分大小写,很是让人难过。不过在Editor=>Code Completion里把Case sensitive completion设置为None就可以了。
自动展开目录
Eclipse有个打开文件就自动展开目录的功能,在IntelliJ里从Project左边栏的齿轮上选择Autoscroll to Source和Autoscroll from Source都勾选上即可。
自动编译
IntelliJ默认是不会自动编译项目的,所以在run之前会有个make的过程,习惯自动编译项目的可以在这里打开:Compiler=>make project automatically。因为IntelliJ项目空间不大,所以开启之后也不会像Eclipse一样出现build workspace很久的情况。
另外一个 intelliJ 的快捷键 http://www.ituring.com.cn/article/37792
Eclipse 和 intellij的快捷键对照表
EclipseIntelliJ IDEADescriptionF4ctrl+hshow the type hierarchyctrl+alt+gctrl+alt+F7find usagesctrl+shift+uctrl+f7finds the usages in the same filealt+shift+rshift+F6renamectrl+shift+rctrl+shift+Nfind file / open resourcectrl+shift+x, jctrl+shift+F10run (java program)ctrl+shift+octrl+alt+oorganize importsctrl+octrl+F12show current file structure / outlinectrl+shift+mctrl+alt+Vcreate local variable refactoringsyso ctrl+spacesout ctrj+jSystem.out.println(“”)alt + up/downctrl + shift + up/downmove linesctrl + dctrl + ydelete current line???alt + hshow subversion historyctrl + hctrl + shift + fsearch (find in path)“semi” set in window-> preferencesctrl + shift + enterif I want to add the semi-colon at the end of a statementctrl + 1 or ctrl + shift + lctrl + alt + vintroduce local variablealt + shift + salt + insertgenerate getters / settersctrl + shift + fctrl + alt + lformat codectrl + yctrl + shift + zredoctrl + shift + cctrl + /comment out lines (my own IDEA shortcut definition for comment/uncomment on german keyboard layout on laptop: ctrl + shift + y)ctrl + alt + hctrl + alt + h (same!)show call hierarchynone ?ctrl + alt + f7to jump to one of the callers of a methodctrl + shift + ialt + f8evaluate expression (in debugger)F3ctrl + bgo to declaration (e.g. go to method)
refer http://www.catalysts.cc/en/wissenswertes/intellij-idea-and-eclipse-shortcuts/
- Eclipse、IntelliJ IDEA常用的快捷键
- intellij idea常用的快捷键
- IntelliJ IDEA 常用的快捷键
- IntelliJ Idea常用的快捷键
- 常用的IntelliJ IDEA 快捷键
- IntelliJ IDEA和Eclipse最常用的快捷键对应表:
- IntelliJ IDEA中设置Eclipse常用快捷键
- IntelliJ IDEA 和 Eclipse 常用快捷键
- IntelliJ IDEA快捷键(常用)
- IntelliJ IDEA快捷键(常用)
- Intellij Idea 常用快捷键
- IntelliJ IDEA 常用快捷键
- IntelliJ Idea 常用快捷键
- Intellij IDEA 常用快捷键
- Intellij idea常用快捷键
- IntelliJ Idea 常用快捷键
- IntelliJ Idea 常用快捷键
- Intellij IDEA常用快捷键
- IONIC项目JPUSH消息推送IOS集成
- python之from...import...和import
- 优化小计,304和202
- "Host 'USER-XXXX' is not allowed to connect to this MySQL server"
- 仿知乎日报第十二篇:为ArticleActivity加载布局
- Eclipse、IntelliJ IDEA常用的快捷键
- Revit开发在链接模型中使用ISelectionFilter
- LayoutAnimation与LayoutTransition
- 编程细节之 session命名 和 dispartcher与redirect选择
- 智能电网配网传输: 工业以太网交换机还是EPON?
- 正确使用 Android 性能分析工具——TraceView
- javascript写一个定时器
- php表单中汉字被过滤,无法上传mysql数据库
- QRCode生成二维码