You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not ideal for Mathematica, as unlike some other languages, it allows nesting comments. Furthermore, uncommenting with the same shortcut leads to
foocommentbar
The better outcome would be
(*foo (* comment *)bar*)
or similar.
The same applies to the line-comment shortcut as well.
The text was updated successfully, but these errors were encountered:
I need to look into this, but the whole commenting/uncommenting logic comes from the IntelliJ API. I merely provide the tokens for starting and ending a comment.
I agree that the current situation is not optimal but I will push this back as "enhancement".
Consider code like this:
If I use the block-comment shortcut on it, I get
This is not ideal for Mathematica, as unlike some other languages, it allows nesting comments. Furthermore, uncommenting with the same shortcut leads to
The better outcome would be
or similar.
The same applies to the line-comment shortcut as well.
The text was updated successfully, but these errors were encountered: