in the new vs code extension is there a way to com...
# adobe
b
in the new vs code extension is there a way to comment out a line or selected lines with a keystroke? in the other extension i could use "command + /" to auto comment a line or block. found out i used this feature a lot when i switched to the adobe extension and it wasn't there.
b
I'm not sure its a CF extension giving that. I just tried it with and without the adobe extension and it works fine. Try checking your shortcut? command+k+s --> alt+command+k --> command+/ That should show you all the commands (if any) that are bound to that shortcut/
mine, when focused on an editor, is set to toggle line comments but doesn't appare to be tied to an extension
b
i'll give that a shot.. when i re-enabled the old extension its back to working so i just assumed that was what was doing it.
b
hmm... maybe I had both enabled. so it fell back to the old one. I'll double check after this meeting
r
Yeah, the toggle line comment with ctrl+/ or command+/ is a VS Code default.
m
It's typically just a language configuration setting that the extension contributes the line and block comment values, which the Adobe extension does as far as I can see, and VS Code handles the rest. But it gets tricky with CFML because there's a tag-based and script-based dialect which have distinct ways of commenting, This means that each dialect would need its own language ID, which neither extension does, or you have to explicitly workaround that issue. Both extensions contribute commands that do this, but the old CFML extension would actually override the default keybinding to make it seamless.
The Adobe CFML commands appear to be
cfml.shortcuts.toggleCFScriptComment
,
cfml.shortcuts.toggleCFTagComment
, and
cfml.shortcuts.toggleSingleLineComment
.
You can add your own keybindings to those commands
r
Just need to ditch tags. 😱
m
The Adobe extension does provide default keybindings too. They just might not work as you expect. I haven't tried them yet.
r
They work for me, just not the OP.
m
This has been my main issue too. The CFML extension (Kamasamak) has that crtl + / key binding and I use it all the time. As soon as I installed the Adobe CFML extension I lost it. Pretty much switched back to CFML for now as the Adobe one doesn't work at all. None of the buttons work on the CF sidebar yet. Similar to what other users have experienced.