question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi-line block comments do not insert an asterisk in Apex

See original GitHub issue

Summary

When trying to document an Apex class using Javadoc comment format, there is no proper multi-line formatting being triggered or a new asterisk being added on the new line after pressing enter.

What should happen:

/**
 *
 */

What is currently happening:

/**

 */

Steps To Reproduce:

  1. Open an Apex class.
  2. Start typing /**
  3. It will auto-complete with /**| */ ( | is the cursor)
  4. Press Enter.

Expected result

What should happen:

/**
 *
 */

Actual result

What is currently happening:

/**

 */

Additional information

I have tried with other extensions that claim to handle multi-line comments for you as well. But none of them did any difference for this issue.

VS Code Version: 1.36.0

SFDX CLI Version: sfdx-cli/7.13.0-27dbcb37d3 win32-x64 node-v10.15.3

OS and version: WIN 10 x64

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
eclarke12commented, Sep 23, 2019

+1 if we can also get ApexDoc/JavaDoc stub-creation (ie. auto-generate @params @returns) etc that would be a bonus

0reactions
erocheleaucommented, Feb 2, 2020

Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't comment out Apex Class - Salesforce Developers
Explanation: If you open the class then it is not properly commented. If you are using trying to use multi-line comments then you...
Read more >
java - How to disable the automatic asterisk (inserting stars) in ...
In Eclipse 4.2 and later, the solution is: Window -> Preferences -> Java -> Code Style -> Formatter ->. $profileName -> Edit.
Read more >
Warning! Hidden traps – comments in SQL*Plus - svenweller
Comments are simple ways to add information to objects/code ... A slash “/” followed by an asterisks “*” starts a multi line comment....
Read more >
Block Comments - Asterisk Wiki
A block comment is a comment that begins on one line, and continues for ... and continue across multiple lines until the character...
Read more >
Comments Within SQL Statements
Begin the comment with a slash and an asterisk (/*). Proceed with the text of the comment. This text can span multiple lines....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found