是否可以在基于IntelliJ Idea平台的IDE中的注释中引用文件? [英] Is it possible to reference a file in comments in IntelliJ Idea platform based IDEs?

查看:709
本文介绍了是否可以在基于IntelliJ Idea平台的IDE中的注释中引用文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android Studio使用Java编程Android。众所周知,这个IDE基于IntelliJ平台。那么,这可能吗:

  //请看一下ir.domain.project.MyClass.java 

@Vic 是否可以在IntelliJ Idea中超链接注释?建议使用@see javadoc标签,但是当你从代码生成文档时它很有用。 / p>

我正在寻找的是基于IDE的解决方案。



有什么建议吗?

解决方案

您可以添加一个链接(在Windows中按住Control键并单击,在Mac中按住Command键点击),如下所示:

  / ** 
*请查看{@link ir.domain.project.MyClass}
* /

您还可以链接到特定方法:

  / ** 
*请查看{@link ir.domain.project.MyClass #myMethod(int)}
* /

IntelliJ提供了一个在您键入时完成 - 您可以利用它来确保链接正确。


I'm using Android Studio for programming Android with Java. As all of us know this IDE is based on IntelliJ Platform. So, Is this possible:

// please take a look at ir.domain.project.MyClass.java

@Vic in Is it possible to hyperlink comments in IntelliJ Idea? has suggested to use @see javadoc tag but I it is useful when you are generating documentation from code.

What I'm looking for is an IDE based solution.

Any suggestions?

解决方案

You can add a link (control-click in windows, command-click in Mac) like below:

/**
* please take a look at {@link ir.domain.project.MyClass}
*/

You can also link to a specific method:

/**
* please take a look at {@link ir.domain.project.MyClass#myMethod(int)}
*/

IntelliJ provides auto completion as you type - you can utilize that to ensure the link is correct.

这篇关于是否可以在基于IntelliJ Idea平台的IDE中的注释中引用文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆