Intelj使用


IntelliJ 10.0.1设置JDK:

File-->Project Structure: project SDK--New a jsdk.

ctrl + y 删除行

psvm 然后按Tab键,会自动生成public static void main方法

sout然后按Tab键,会自动生成System.out.println

psfi 然后按Tab键,会自动生成public static final int

ifn然后按Tab键


Ctrl-N(Go to | Class…) 再键入类的名字可以快速地在编辑器里打开任何一个类

Ctrl+R 替换文本

Ctrl-Shift-N(Go to | File…)打开工程中的非Java文件

使用Ctrl-Shift-F7(Search | Highlight Usages in File)可以快速高亮显示当前文件中某一变量的使用地方


Ctrl+Shift+F 全文搜索功能

Ctrl+Shift+Space 补全,语句自动完成 Statements completion


Ctrl+W (select word)

Ctrl+D 复制一行

Ctrl+Shift+u 大小写切换

Ctrl+P 方法参数提示


ctrl+q 显示方法的完全名称 == Eclipse中的F2

Ctrl+Alt+V  Extract Variable

调试过程中 Ctrl+Shift+I看到这个表达式的值

Settings->Keymap->Main menu->Navigate->File Structure 设置显示类的所有方法的快捷键

Settings->Keymap->Main menu->Code->Reformat Code 格式化快捷键

Ctrl+B 进入方法==Eclipse中的F3

Ctrl + Alt + B 

Ctrl + Alt + T 用*来围绕选中的代码行( * 包括if、while、try catch等)

Ctrl + ]/[ 跳转到代码块结束/开始处

Ctrl + H : 查看类继承结构

Ctrl + Alt + Shift + T refactor

CTRL+ALT+T  把选中的代码放在 TRY{} IF{} ELSE{} 里


Alt F7 opens the dialog to find the usages

Ctrl +Alt +F7 jump to one of the callers of the method

⌘+F12 (File Structure)


破解及Jrebel:http://note.youdao.com/share/?id=33c21fb3c24e81c2781872525e22ade2&type=note


--------------

我的配置

1、修改编辑器的字体(也就是代码的字体):设置-Editor-Color&Font

2、修改tab键和编辑器的光标位置,IntelliJ IDEA默认时,光标是可以随意放置的,用惯了Eclipse的人会觉得很不方便。
修改光标位置:设置-Editor-将Allow placement of caret after end of line的勾去掉

3、设置tab的使用:
设置-CodeStyle-general :use tab character
设置-CodeStyle-java :use tab character

4、Settings > Code Style > General > Right margin


http://www.cnblogs.com/bluestorm/archive/2013/05/20/3087889.html(转)

http://www.ituring.com.cn/article/37792


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值