Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Apex JavadocNew to Visual Studio Code? Get it now.
Apex Javadoc

Apex Javadoc

btamburrino

|
24,697 installs
| (5) | Free
Stubs a Javadoc Comment for a Salesforce Apex method
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Apex Javadoc

Version Installs Ratings

Stubs a Javadoc Comment for a Salesforce Apex method based on the parameters.

Documentation

There are three ways to create a comment on an Apex method:

  • On the line above the method signature, start typing /** and then hit tab
  • While on the line that has the method signature, open the command bar and choose Force: Stub Apex Javadoc Comment
  • Right click on the line with your method signature, and choose Force: Stub Apex Javadoc Comment
    • This requires you to have force.showApexJavadocContext set to true in your User Settings. This is false by default to not clutter up your context menu unless you want it to.
  • If you see two instances of */ when using this, set force.showApexJavadocTrailingCloseComment to false in your User Settings.

Known Issues

  • If using the right-click context action on a class definition, the blank Javadoc comment is not whitespaced aligned with the beginning of the class definition. If you type /** and hit tab, it works as intended.
  • You'll find more, I'm sure. Report them here.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft