IDEA 自动跳出括号的快捷键分享
作者:不言不语技术 时间:2021-05-23 18:54:21
IDEA自动跳出括号并且补全分号(类似eclipse的功能)
跳括号外头去
ctrl shift enter
叫做 Complete Current Statement
如果后面没关闭,会自动帮你关闭并跳下一行
如果有关闭了,会跳下一行
还有个不擦屁股直接跳的
shift enter
不管现在光标在哪个位置,直接新开一行
跳出双引号:shift + "
跳出单引号:'
跳出括号:shift + )
跳出中括号:]
以此类推。
补全方法返回的值的接收变量
alt enter:补全方法返回的值的接收变量
如:
s.indexOf(1); //此时按alt+enter
显示:int i = s.indexOf(1); 自动补全int i=
补充:IDEA如何切换到括号外
一般我们输入完括号后都会习惯性Enter或者Shift + Enter切换到括号外,结果却变成了:
public void nothing()
Enter →
public void nothing(
)
???
切换到括号外的方法就是Shift + 右括号
( ) = Shift + 0
{ } = Shift + ]
< > = Shift + .
[ ] = ]
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。如有错误或未考虑完全的地方,望不吝赐教。
来源:https://www.cnblogs.com/hzcya1995/p/13310029.html
标签:IDEA,跳出,括号,快捷键
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Android 使用PDF.js浏览pdf的方法示例
2021-12-08 06:11:41
![](https://img.aspxhome.com/file/2023/2/89522_0s.png)
Android CoordinatorLayout高级用法之自定义Behavior
2022-03-20 05:47:51
![](https://img.aspxhome.com/file/2023/3/91673_0s.gif)
SpringBoot整合Mybatis实现多数据源配置与跨数据源事务实例
2023-06-29 23:47:34
Java代码为例讲解堆的性质和基本操作以及排序方法
2021-08-27 05:32:25
![](https://img.aspxhome.com/file/2023/5/76525_0s.jpg)
C#实现向函数传递不定参数的方法
2021-06-21 01:33:22
Flutter实现矩形取色器的封装
2023-06-19 04:08:47
![](https://img.aspxhome.com/file/2023/9/96009_0s.jpg)
C#异常执行重试的实现方法
2023-12-04 16:24:59
Spring内存缓存Caffeine的基本使用教程分享
2023-05-26 00:30:33
Java中的 stop the world是什么呢
2022-09-11 21:32:42
![](https://img.aspxhome.com/file/2023/5/78925_0s.png)
.NET程序员如何入门Spring Boot详解
2022-04-18 08:04:05
![](https://img.aspxhome.com/file/2023/6/104066_0s.png)
Java的后台文件夹下文件的遍历完整代码
2023-09-18 12:32:19
![](https://img.aspxhome.com/file/2023/8/84298_0s.jpg)
JavaWeb登录界面登录失败在同一页面进行提示的解决
2023-11-26 15:51:34
![](https://img.aspxhome.com/file/2023/6/60356_0s.png)
c#异步操作async await状态机的总结(推荐)
2021-08-22 07:13:12
![](https://img.aspxhome.com/file/2023/7/129687_0s.png)
JavaFX 监听窗口关闭事件实例详解
2023-07-20 21:53:06
![](https://img.aspxhome.com/file/2023/4/110884_0s.jpg)
详解Kotlin的空指针处理
2022-06-03 06:57:58
![](https://img.aspxhome.com/file/2023/6/81956_0s.jpg)
基于springboot2集成jpa,创建dao的案例
2021-08-02 00:40:46
java实现轻量型http代理服务器示例
2021-10-05 18:14:20
Feign Client 超时时间配置不生效的解决
2021-09-05 15:49:11
![](https://img.aspxhome.com/file/2023/8/81298_0s.jpg)
Android编程使用android-support-design实现MD风格对话框功能示例
2022-05-19 03:46:39
![](https://img.aspxhome.com/file/2023/6/90176_0s.png)
Dubbo实现分布式日志链路追踪
2023-08-23 21:00:54
![](https://img.aspxhome.com/file/2023/2/58292_0s.png)