Idea快捷键大全

在Idea官方文档说明的快捷键基础上,对不常用的进行了删减。将快捷键分类为官方强烈推荐的查找/替换、编辑、重构、导航等类别,且均为简单英文表述。

在官方文档说明的快捷键基础上自己把不常用的做了删减:

注:都是些简单的英文

分类如下:

 

     官方强烈推荐的:

Search everywhere

Double Shift

Show intention actions and quick-fxes

Alt + Enter

Generate code, new.....

Alt + Ins

Parameter info

Ctrl + P

Recent fles popup

Ctrl + E

Rename

Shift + F6

Find Action 

Ctrl + Shift + A

 

     查找/替换

Find

Ctrl + F

Find next/previous

F3 / Shift + F3

Replace

Ctrl + R

Replace in path

Ctrl + Shift + R

Select next occurrence 

Alt + J

Select all occurrences

Ctrl + Alt + Shift + J

     编辑

Complete statement 自动结束代码,行末自动添加分号 

Ctrl + Shift + Enter

Parameter info (within method call arguments)

Ctrl + P

Quick documentation lookup

Ctrl + Q

Brief Info

Ctrl + mouse

Show descriptions of error at caret  在光标所在的错误代码处显示错误信息 

Ctrl + F1

Generate code... 

Alt + Insert

Override methods 

Ctrl + O

Implement methods 

Ctrl + I

Surround with…

Ctrl + Alt + T

Comment/uncomment with line comment 

Ctrl + /

Comment/uncomment with block comment 

Ctrl + Shift + /

Extend selection 

Ctrl + W

Shrink selection 

Ctrl + Shift + W

Context info(show current class or method declaration when it is not visible)

Alt + Q

Show intention actions and quick-fxes 

Alt + Enter

Reformat code  格式化代码,可以对当前文件和整个包目录使用

Ctrl + Alt + L

Optimize imports  优化导入的类,可以对当前文件和整个包目录使用

Ctrl + Alt + O

Auto-indent line(s 光标所在行 或 选中部分进行自动代码缩进,有点类似格式化) 

Ctrl + Alt + I

Indent/unindent selected lines (手动缩进)

Tab / Shift + Tab

Paste from recent buffers...

Ctrl + Shift + V

Duplicate current line

Ctrl + D

Delete line at caret (删除光标所在行)

Ctrl + Y

Smart line join 自动将下一行合并到当前行末尾 

Ctrl + Shift + J

Smart line split 

Ctrl + Enter

Start new line

Shift + Enter

Toggle case for word at caret or selected block 

Ctrl + Shift + U

Select till code block end /start

Ctrl + Shift + ] / [

Delete to word end

Ctrl + Delete

Expand/collapse code block

Ctrl + NumPad+ / -

Collapse all

Ctrl + Shift + NumPad-

Expand all

Ctrl +  Shift + NumPad+

Close active editor tab

Ctrl + F4

 

 

 

     重构

Create a copy of the selected class ,file(s),or directory(es)

F5

Move the selected class ,method,package,static member  to another package or class

and correct all references 

F6

Rename

Shift + F6

Inline the 

Ctrl + Alt + N

Turn the selected code fragment into a method 提取代码片段

Ctrl + Alt + M

将表达式提取为变量

Ctrl + Alt + V

Extract Field

Ctrl + Alt + F

Extract Constant

Ctrl + Alt + C

Extract Parameter 将表达式提取为方法的参数

Ctrl + Alt + P

 

 

 

 

 

 

  

     

      导航

Go to class

Ctrl + N

Go to fle

Ctrl + Shift + N

Go to next/previous editor tab

Alt + Right/Left

Go to line

Ctrl + G

Recent fles popup

Ctrl + E

Navigate back/forward   (工具栏上的左右箭头)

Ctrl + Alt + Left/Right

Navigate to last edit locatio退回到上次修改的地方

Ctrl + Shift +Backspace

Select current fle or symbol in any view

Alt + F1

Go to declaration 进入光标所在的方法/变量的接口或是定义处,等效于 Ctrl + 左键单击

Ctrl + B , Ctrl + Click

Go to implementation(s) (调到当前选中的类、方法的实现)

Ctrl + Alt + B(Ctrl + Alt+点击)

Open quick defnition lookup  查看定义

Ctrl + Shift + I

Go to super-method/super-class

Ctrl + U

上/下一个方法

Alt + Up/Down

Move to code block

Ctrl + ]/[

File structure popup   弹出当前文件结构层,可以在弹出的层上直接输入,进行筛选

Ctrl + F12

Type hierarchy  显示当前类的层次结构

Ctrl + H

Method hierarchy  显示方法层次结构

Ctrl + Shift + H

Next/previous highlighted 

F2

Edit source

F4

Toggle bookmark

F11

Show bookmarks

Shift + F11

Toggle bookmark with mnemonic

Ctrl + F11

Go to numbered bookmark

Ctrl + #[0-9]

 

下载前可以先看下教程 https://pan.quark.cn/s/16a53f4bd595 小天才电话手表刷机教程 — 基础篇 我们将为您简单的介绍小天才电话手表新机型的简单刷机以及玩法,如adb工具的使用,magisk的刷入等等。 我们会确保您看完此教程后能够对Android系统有一个最基本的认识,以及能够成功通过magisk root您的手表,并安装您需要的第三方软件。 ADB Android Debug Bridge,简称,在android developer的adb文档中是这么描述它的: 是一种多功能命令行工具,可让您与设备进行通信。 该命令有助于各种设备操作,例如安装和调试应用程序。 提供对 Unix shell 的访问,您可以使用它在设备上运行各种命令。 它是一个客户端-服务器程序。 这听起来有些难以理解,因为您也没有必要去理解它,如果您对本文中的任何关键名词产生疑惑或兴趣,您都可以在搜索引擎中去搜索它,当然,我们会对其进行简单的解释:是一款在命令行中运行的,用于对Android设备进行调试的工具,并拥有比一般用户以及程序更高的权限,所以,我们可以使用它对Android设备进行最基本的调试操作。 而在小天才电话手表上启用它,您只需要这么做: - 打开拨号盘; - 输入; - 点按打开adb调试选项。 其次是电脑上的Android SDK Platform-Tools的安装,此工具是 Android SDK 的组件。 它包括与 Android 平台交互的工具,主要由和构成,如果您接触过Android开发,必然会使用到它,因为它包含在Android Studio等IDE中,当然,您可以独立下载,在下方选择对应的版本即可: - Download SDK Platform...
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值