IDEA使用技巧
高手博客
http://blog.csdn.net/qq_27093465/article/category/6084591
http://blog.csdn.net/RobertoHuang/article/details/75042116
https://blog.csdn.net/fanrenxiang/article/details/80503490
https://www.cnblogs.com/chiangchou/p/idea-debug.html
视频教程:https://www.imooc.com/learn/924
快捷键查询
菜单栏HELP----->keymap reference
Help----->find action (ctrl+shift+a)
跳转
1.项目跳转:菜单栏window---->next project window(ctrl+alt+])
2.文件跳转:action搜索recent files(ctrl+e),recently changed files(ctrl+shift+e)
3.类跳转:go to class(ctrl+n)
4.万能搜索:search everywhere(连续按两次shift)
5.上次编辑:菜单栏navigate---->last edit location(ctrl+shift+backspace)
6.标签跳转:select next tab(alt+右箭头)
7.浏览跳转:菜单栏navigate---->back(ctrl+alt+左箭头)
8.书签跳转:toggle bookmark(F11),toggle bookmark with mnemonic(ctrl+F11),go to bookmark 2(ctrl+2)
9.收藏:favorites(alt+2),add to favorites(alt+shift+f)
10.跳转到任何一个单词:安装插件IdeaVim或emacsIDEAs
11.项目区与工作区跳转:(alt+1,ESC)
搜索
1.类:(ctrl+n)
2.文件:(ctrl+shift+n) 文件名字前加/可搜目录
3.函数:symbol(ctrl+shift+alt+n)
4.字符串:find in path(ctrl+shift+f)
5.万能:(shift+shift)
live templates
1.psfi
public static final int $var1$ = $var2$;
2.pic
/**
* $comment$
*/
public int $name$;
$end$
postfix
1.fori
before
foo.fori
after
for (int i = 0; i < foo; i++) {
}
2.field
before
public class Foo {
public Foo(int arg) {
arg.field
}
}
after
public class Foo {
private int foo;
public Foo(int arg) {
foo = arg;
}
}
3.try
before
m().try
after
try {
m();
} catch(CheckedException e) {
e.printStackTrace();
}
alter+enter
1.自动补全代码
before
f();
after
private void f() {
}
2.单词拼写
3.导包
4.实现接口
5.list replace
6.字符串format或build
7.inject language(如JSON)
git
1.annotate
2.revert(ctrl+alt+z)
3.右键---->local history---->show history或put label
File
1.copy(F5)
2.MOVE(F6)
3.剪贴板(ctrl+shift+v)
4.file structure(ctrl+F12)
5.查看类继承关系图(ctrl+shift+alt+u,ctrl+alt+u)

6.type hierarchy(ctrl+h)
7.函数调用层次关系call hierarchy(ctrl+alt+h)
本文分享了IDEA的使用技巧,包含高手博客与视频教程链接,介绍快捷键查询方法,还阐述了跳转(如项目、文件、类跳转等)、搜索(类、文件、函数等搜索)、live templates、postfix、alter+enter功能、git操作及File相关操作等内容。

1万+

被折叠的 条评论
为什么被折叠?



