IDEA快捷键(全网最全详细图解)

IDEA快捷键(全网最全详细图解)括号分号行缩进大小写 variablepara 编辑方法类类类 API FindReplace 替换查找替换 statement 语句问号 idea 快捷键

大家好,欢迎来到IT知识分享网。

1、提高代码编写速度

  • IDEA快捷键(Ctrl + tab)非常好用 切换最近使用的编辑器选项卡-CSDN博客
  • 史上最快在IDEA中创建类,只需要 ctrl + 鼠标左键双击 就可以调出创建类的窗口(全网首创)​​​​​​
  • IDEA中,光标移动快捷键(Shift + 滚轮前后滚动:当前文件的横向滚动轴滚动。)(Ctrl+shift+左方向键/右方向键:光标向左选中内容/向右选中内容
  • IntelliJ IDEA 常用快捷键一览表(通用型,提高编写速度,类结构、查找和查看源码,替换与关闭,调整格式)
  • IDE开发工具Idea使用(IDEA安装与卸载,详细配置,快捷键,代码模板,创建模板,Debug调试,生成javadoc,导入模块,导出jar)
  • 第04章_IDEA的安装与使用(下)(IDEA断点调试,IDEA常用插件)
     
快捷键 功能

ctrl + alt + space

IDEA快捷键(全网最全详细图解)

显示内容提示功能

IDEA快捷键(全网最全详细图解)

psvm

快速键入main方法

IDEA快捷键(全网最全详细图解)

点sout

快速打印

IDEA快捷键(全网最全详细图解)

shift + enter

光标移动到下一行,新增加一行

IDEA快捷键(全网最全详细图解)

ctrl + Y

删除光标所在行

IDEA快捷键(全网最全详细图解)

crtl  +  D

复制光标所在行的内容,插入光标位置下面

IDEA快捷键(全网最全详细图解)

ctrl + alt + L

格式化代码,整理代码格式

IDEA快捷键(全网最全详细图解)

ctrl  + /

单行注释,再按取消注释

ctrl + shift + /

选中代码注释,多行注释,再按取消注释

(alt + Insert)(Generate)

IDEA快捷键(全网最全详细图解)

自动生成代码,Constructor,Getter,Setter,equals(),hashCode(),toString()

alt + shift + 上下箭头

移动当前代码行

alt    + enter

快速提示解决方案,导入包,自动修正代码,智能提示

ctrl + alt + enter 

把光标移动到上一行

ctrl + shift  + enter 

自动补全函数 括号分号、当前行缩进

在当前行任何地方可以生成快速在末尾生成分号,自动补全后续代码(便捷补全)

ctrl + shift + u

表示大小写转换

ctrl + shift + m

封装成方法

ctrl + alt + 向左键头

返回上一步(在代码导航中后退到上一个位置)

shift + F6

批量修改变量名(refactor —>  rename     String occurrences found–>Rename code occurences–>Rename all occurrences)

(alt + 鼠标左键)(按住滚动拖动)

IDEA快捷键(全网最全详细图解)

都可以实现批量选中,然后可以进行批量删除或者修改

alt + shift +上下箭头

移动代码行

(ctrl + alt + v)(点var)(alt  +  enter)variable

表示补全变量  

ctrl + p

(    parameter   )

IDEA快捷键(全网最全详细图解)

查看传入的参数类型

(ctrl + F12)(alt  + 7)

表示被继承的成员(inherited  members  相当于 structure)

alt + 7

IDEA快捷键(全网最全详细图解)

打开  Structure

变量点for

快捷输入增强for循环(foreach)

ctrl + alt + T

IDEA快捷键(全网最全详细图解)

Surround With…(包裹代码),if,if/else,while,do/while,for,try/catch,try/finally,try/catch/finally,synchronized,Runnable

ctrl + J

IDEA快捷键(全网最全详细图解)

提示代码模板

ctrl + I

实现接口的方法

ctrl + O

重写父类的方法IDEA快捷键(全网最全详细图解)

2、移动光标定位 

ctrl + alt + 左右键

跳转到上一个/下一个的   编辑  位置

alt + 上下键

跳转到上一个/下一个方法位置

alt + 左右键

打开的 文件之间切换

ctrl + G

IDEA快捷键(全网最全详细图解)    定位行/列

ctrl + w

1、按一下选择单词IDEA快捷键(全网最全详细图解)

 2、按 两下 继续选择旁边的单词IDEA快捷键(全网最全详细图解)

 3、一直按一直选,直至全选

IDEA快捷键(全网最全详细图解)

3、查找与查看源码 

按住ctrl键

单击某个类或方法就可以打开某个  类  或  方法  的源码

ctrl + alt + B

但是当某个变量是通过多态引用调用父类或父接口的方法时,想要打开方法的实现类

ctrl + Q

IDEA快捷键(全网最全详细图解)选中方法名,查看方法文档

ctrl + H(hierarchy)

IDEA快捷键(全网最全详细图解)

查看类的继承层次

ctrl + alt + U

IDEA快捷键(全网最全详细图解)

查看类的UML关系图

ctrl + F12

IDEA快捷键(全网最全详细图解)

查看当前 的结构

ctrl + N

IDEA快捷键(全网最全详细图解)

搜索  类 (API)

ctrl  + shift + F

F i n d )

IDEA快捷键(全网最全详细图解)

全项目搜索文本

ctrl + shift  + R

R e p l a c e

IDEA快捷键(全网最全详细图解)

全项目 替换 文本

ctrl + F

IDEA快捷键(全网最全详细图解)

当前源文件 查找 文本

ctrl + R

IDEA快捷键(全网最全详细图解)

当前源文件 替换 问题

双击shift

IDEA快捷键(全网最全详细图解)

任何地方搜索

按 ctrl 按 shift 按  –

IDEA快捷键(全网最全详细图解)

折叠方法

按 ctrl 按 shift 按  +

IDEA快捷键(全网最全详细图解)

展开方法

4、Main Menu  –》  Code  –》 Code Completion

IDEA快捷键(全网最全详细图解)

alt  + 数字键盘上的  /

IDEA快捷键(全网最全详细图解)

IDEA快捷键(全网最全详细图解)

complete code  帮助 补全代码

ctrl + shift + 空格

IDEA快捷键(全网最全详细图解)

IDEA快捷键(全网最全详细图解)

type-matching   

ctrl + shift + enter

complete current  statement    (补全当前的  语句  )

IDEA快捷键(全网最全详细图解)

alt +  / 

 (是 键盘 问号 ?位置的斜杠)

cyclic expand word     循环前面的单词

IDEA快捷键(全网最全详细图解)

alt  + shift  + /

cyclic expand word  (backward)   循环后面的单词

IDEA快捷键(全网最全详细图解)

ctrl  +  J

IDEA快捷键(全网最全详细图解)

IDEA快捷键(全网最全详细图解)

insert  live   templateIDEA快捷键(全网最全详细图解)

ctrl + alt + T

IDEA快捷键(全网最全详细图解)

IDEA快捷键(全网最全详细图解)

surround with  IDEA快捷键(全网最全详细图解)

ctrl + shift + delete

IDEA快捷键(全网最全详细图解)

IDEA快捷键(全网最全详细图解)

unwrap /  remove  

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/109595.html

(0)
上一篇 2026-02-05 19:46
下一篇 2026-02-05 20:10

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注微信