Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

VSCode - How to make 'rename symbol' (F2) works also on JSDoc comments

$
0
0

I have a class like:

class MyClass{
  private myVar: string;

  /**
  * do some stuff with myVar
  */
  private myMethod(){
    // something
  }
}

If I rename myVar to renamedVar:

class MyClass{
  private renamedVar: string;

  /**
  * do some stuff with myVar
  */
  private myMethod(){
    // something
  }
}

I would like to refactor/rename myVar and that the changes would also be made in the JSDoc comment above myMethod.

Desired output:

class MyClass{
  private renamedVar: string;

  /**
  * do some stuff with renamedVar
  */
  private myMethod(){
    // something
  }
}

I tried using {@link myVar} but seems not work.

Help/hints appreciated, thanks


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>