idea 使用笔记

[复制链接]
发表于 2025-1-7 11:28:27 | 显示全部楼层 |阅读模式

!0

!0

idea 添加注释 https://blog.csdn.net/shadow_zed/article/details/80551460

idea 打断点 https://blog.csdn.net/yxl_1207/article/details/80973622

文件 便吗https://blog.csdn.net/khz_222/article/details/86429941

idea 集成教程

https://blog.csdn.net/fanrenxiang/article/details/80503490

ctrl z 撤销

ctrl shift z重做

ctrl f查找

ctrl shift f全局查找

ctrl r替换

ctrl shirt r 全局替换

ctrl y 删除行

double shift 全局文件搜索

alt f7 查找这个方法被调用的地方

ctrl alt b 快速定位到当前方法的实现

alt insert 增加set get方法,构造器等

注释单行 ctrl /

多行注释ctrl shift /

格式化 ctrl alt L

优化import ctrl alt o

alt enter 提示导入包

shift f6重命名文件

ctrl d 复制

ctrl y 删除当期行

alt enter 补全 方法

https://www.cnblogs.com/jx17/p/6244491.html?utm_source=itdadao&utm_medium=referral

!0

!0

标注 1:显示 IntelliJ IDEA 的插件分类,

All plugins:显示 IntelliJ IDEA 支持的所有插件;

Enabled:显示当前以前启用的插件;

Disabled:显示当前未启用的插件;

Bundled:显示 IntelliJ IDEA 所有自带的插件;

Custom:显示我们自己安装的插件。

标注 2:打钩√表示为已经启用的插件;

标注 3:安装 JetBrains 开发的插件;

标注 4:安装插件仓库提供的插件;

标注 5:安装本地已经下载完的插件


作者:CG国斌

来源:CSDN maven插件的使用

原文:https://blog.csdn.net/qq_35246620/article/details/78289074

版权声明:本文为博主原创文章,转载请附上博文链接!

To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and press Ctrl+B (Navigate | Declaration). You can also click the mouse on usages with the Ctrl key pressed to jump to declarations.

!0

!0

ctrl+f12 nnwy快gkip速导航teym一个类中的方法中

IntelliJ IDEA Find in Path works with source and resource files only. It doesn’t search in the binary .class files. What you see when you navigate to a .class file is the decompiled version of the class. Decompilation is performed on the fly, IDE doesn’t decompile and index all the .class files automatically, therefore there is no index available and no way to perform fast search. Such feature, while technically possible, would require decompiling and indexing all the dependencies which could take a lot of time and system resources, especially in the projects with a lot of dependencies.

Usually there are sources available for the libraries you depend on. For Gradle/Maven projects IntelliJ IDEA can download and configure such sources automatically, so find in path will work inside the libraries with the attached sources for the majority of the users/projects.

In case the library has no sources, you can perform offline decompilation of the entire library using the command line batch decompiler and attach the directory with the decompiled sources to the library.

不能在Intellij中的反编译.class文件中搜索字符串

idea 解决 不能加载maven 外部jar包的问题

在maven 插件 bin目录下使用mvn命令

mvn install:install-file -DgroupId=com.souche -DartifactId=msgcenter-sdk -Dversion=1.2.6-SNAPSHOT -Dpackaging=jar -Dfile=/Users/lmfeng/Documents/msgcenter-sdk-java/target/msgcenter-sdk-1.2.6-SNAPSHOT.jar

在pom文件中加入依赖

com.souche

        msgcenter-sdk

        1.2.6-SNAPSHOT

-DgroupId对应为pom文件中的groupId

-DartifactId对应为pom文件中的artifactId

-Dversion对应为pom文件中的version

-Dpackaging导入包的类型是jar包的话就是jar

-Dfile你下载下来的jar包放的路径

运行命令后便可以在本地maven资源库中看到对应的jar包

然后重新执行mvn clean install编译打包即可

提示信息是否显示

!0

!0

GMT+8, 2025-9-5 18:25 , Processed in 0.095370 second(s), 35 queries Archiver|手机版|小黑屋|Attic ( 京ICP备2020048627号 )

快速回复 返回顶部 返回列表