Skip to content
Discussion options

You must be logged in to vote

Unfortunately not. As I commented, once I used a whitespace as the first character, the Toggle Line Comment stopped toggling. I tried updating the .tmLanguage file contained on my language extension, but didn't make any difference.

I'm not familiar with this area of VS Code source, but it seems the internals of the Toggle Line Comment command does ignore leading whitespace while deciding if it should remove comments or not (function _analyzeLines in LineCommentCommand class). If that's the case, I suppose you should ask for a feature request, so the VS Code team could evaluate if/how this could be achieved.

Hope this helps

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@alefragnani
Comment options

Answer selected by olguzzar
@aiday-mar
Comment options

@RedCMD
Comment options

@aiday-mar
Comment options

Comment options

You must be logged in to vote
1 reply
@aiday-mar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants