首页 > 其他分享 >IDEA快捷键的使用

IDEA快捷键的使用

时间:2023-10-20 12:45:58浏览次数:34  
标签:... ctrl shift IDEA 快捷键 使用 alt line

IDEA快捷键的使用

1. 通用型

说明 快捷键
复制代码-copy ctrl + c
粘贴-paste ctrl + v
剪切-cut ctrl + x
撤销-undo ctrl + z
反撤销-redo ctrl + shift + z
保存-save all ctrl + s
全选-select all ctrl + a

2. 提升开发效率

第2组:提高编写速度(上)

说明 快捷键
智能提示-edit alt + enter
提示代码模板-insert live template ctrl+j
使用xx块环绕-surround with ... ctrl+alt+t
调出生成getter/setter/构造器等结构-generate ... alt+insert
自动生成返回值变量-introduce variable ... ctrl+alt+v
复制指定行的代码-duplicate line or selection ctrl+d
删除指定行的代码-delete line ctrl+y
切换到下一行代码空位-start new line shift + enter
切换到上一行代码空位-start new line before current ctrl +alt+ enter
说明 快捷键
向上移动代码-move statement up ctrl+shift+↑
向下移动代码-move statement down ctrl+shift+↓
向上移动一行-move line up alt+shift+↑
向下移动一行-move line down alt+shift+↓
方法的形参列表提醒-parameter info ctrl+p

3. 提高编写速度(下)

说明 快捷键
批量修改指定的变量名、方法名、类名等-rename shift+f6
抽取代码重构方法-extract method ... ctrl+alt+m
重写父类的方法-override methods ... ctrl+o
实现接口的方法-implements methods ... ctrl+i
选中的结构的大小写的切换-toggle case ctrl+shift+u
批量导包-optimize imports ctrl+alt+o

标签:...,ctrl,shift,IDEA,快捷键,使用,alt,line
From: https://www.cnblogs.com/ygcDiary/p/17776809.html

相关文章

  • IDEA使用debug
    IDEA使用debug1.为什么需要Debug?编好的程序在执行过程中如果出现错误,该如何查找或定位错误呢?简单的代码直接就可以看出来,但如果代码比较复杂,就需要借助程序调试工具(Debug)来查找错误了。2.Debug的步骤1、添加断点2、启动调试3、单步执行4、观察变量和执行流程,找到并解......
  • udig安装使用及geoserver图层样式sld的生成与配置
    uDig(User-friendlyDesktopInternetGIS)是一个开源的桌面地理信息系统(GIS)应用程序,专注于提供易于使用的GIS功能和地图制图工具。uDig是一个opensource(EPLandBSD)桌面应用程序框架,构建在EclipseRCP和GeoTools(一个开源的JavaGIS工具包)上的桌面GIS(地理信息系统);是一款......
  • springboot使用maven打成jar包,jar包无法找到主清单类
    <build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><version>2.7.7......
  • openssl api使用
    实验要求参考https://blog.csdn.net/bruce135lee/article/details/81811403调用OpenSSLAPI0推荐在openEuler中实现,参考https://www.cnblogs.com/rocedu/p/6012545.html第三节1提交相关代码码云(或github)链接2提交不少于6张编译测试过程截图3至少包含SM4,SM3的测试代码......
  • Golang泛型的简单使用
    packagemainimport"fmt"//MyInt~表示不仅支持int8,还支持int8的衍生类型int8A和int8BtypeMyIntinterface{ int|~int8|int16|int32|int64}funcgetMaxNum[TMyInt](a,bT)T{ ifa>b{ returna } returnb}//结构体typeAgeTinterface{......
  • 实验二 OpenSSL API使用
    sm3代码#include<stdio.h>#include<openssl/evp.h>#include<openssl/err.h>#include<openssl/rand.h>voidhandleErrors(void){ERR_print_errors_fp(stderr);abort();}voidtest_sm3(){unsignedchardata[]="Hel......
  • 使用DOM4J的一个小例子
    packagecom.dujiali.test;importjava.io.File;importjava.io.FileNotFoundException;importjava.io.FileOutputStream;importjava.io.IOException;importjava.io.OutputStream;importjava.io.OutputStreamWriter;importjava.util.List;importorg.dom4j.Doc......
  • 使用卷积神经网络训练手写数字识别模型(CNN)
    https://www.cnblogs.com/zylyehuo/效果展示目录结构README.md#BasicMNISTExamplepipinstall-rrequirements.txtpythonmain.py#CUDA_VISIBLE_DEVICES=2pythonmain.py#tospecifyGPUidtoex.2requirements.txttorchtorchvisionmain.pyfrom......
  • 【Java 进阶篇】使用 JDBC 更新数据详解
    在关系型数据库中,更新数据是一项常见的任务。通过JavaJDBC(JavaDatabaseConnectivity),我们可以使用Java编程语言来执行更新操作,例如修改、删除或插入数据。本文将详细介绍如何使用JDBC来进行数据更新操作,包括示例代码和必要的概念。JDBC更新操作概述在JDBC中,更新操作通常分为以下......
  • MounRiver使用技巧及配置6
    1、使用MounRiver仿真时仅擦除程序代码部分flash空间配置(页擦)关于MounRiver仿真时仅擦除程序代码部分flash空间配置 2、使用MounRiver调试时如何配置不下载程序关于MounRiver调试时如何配置不下载程序 3、使用MounRiver下载时如何选择配置部分擦除不全擦关于MounRiver......