Skip to content

Copy full package path of a Java class like Intellij #763

@nickzhums

Description

@nickzhums

Copied over from Blog comment: https://devblogs.microsoft.com/java-ch/wp-admin/edit-comments.php

就是可以拷贝java工程的文件或者目录的引用路径,就像idea上的一样,在我平时的编码中比较常用到的比如在配置springboot的自动配置文件入口的时候,需要配置一个配置类作为入口,这个时候需要的是类的全类名,按照现在在vscode中的做法,我必须去找到需要配置的类,然后先复制包名,然后再复制类名填写到配置文件,但是在idea中直接在配置类文件上右键,即可选择复制引用路径,然后直接粘贴到配置文件就可以了。

That is, you can copy the reference path of the file or directory of the java project, just like the idea, which is commonly used in my usual coding. For example, when configuring the automatic configuration file entry of springboot, you need to configure a configuration class as the entry. What is needed at this time is the full class name of the class. According to the current practice in vscode, I have to find the class that needs to be configured, and then copy the package name first, and then copy the class name and fill in the configuration file, but directly in the idea Right-click the configuration file, you can choose to copy the reference path, and then paste it directly into the configuration file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions