可以在IntelliJ Idea中超链接评论吗? [英] Is it possible to hyperlink comments in IntelliJ Idea?

查看:143
本文介绍了可以在IntelliJ Idea中超链接评论吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IntelliJ Idea for Android devleopment。有什么方法可以在IDE中超链接两个注释。例如

I am using IntelliJ Idea for Android devleopment. Is there any way in which I can hyperlink two comments in the IDE. For example

文件 a.java

import a;

/**
* This class does something and something
* and does implements interface b, 
* (i want a hyperlink here, if pressed opens file b.java in IDE and cursor is at comments        
*  before method n)
*/

public class a {
  //do something
}

文件 b.java

import k;

public interface b {

   public j;
   public m;
   /**
    * This will be used when this and this will happen.
   */  
   public n;
}


推荐答案

你可以使用Javadocs' @see tag - examples 此处

You can use Javadocs' @see tag - examples here.

这样做应该足够了:

/**
* Bla bla bla
* @see b#n
*/
public class a

这篇关于可以在IntelliJ Idea中超链接评论吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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