I am using VS Code Version: 1.40.0.
for quicken up my development I would need to set my own keybinding for block comment when I am in .phtml file.
I managed to get into keybindings.json, put this inside:
{
"key": "shift+alt+q",
"command": "editor.action.blockComment",
"blockComment": [ "{*<!--", "-->*}" ],
"when": "editorTextFocus && !editorReadonly && resourceExtname == .phtml"
}
I got the part
"blockComment": [ "{*<!--", "-->*}" ],
from here How to customize comment block characters in visual studio code?.
It might be a complete trash. I just tried. It doesn't work, of course.
Optimal solution:
Even better would be, if the default key parameter would stay the same (shift+alt+a) for toggle block comment and in .phtml files i would get my desired result ("{*<!-- -->*}
").
If I think about it, there is default block comments for .css, .html etc, so there must be a way to put my condition somewhere, rigth?
I would be very glad for any help. Thanks in advance