Copy link to clipboard
Copied
Hi,
I am curious if there is a shortcut to disable CSS rules by highlighting the text (rule) from the CSS page (code view). I know you can disable rules from the properties panel by hitting the disable button... I think it would be more intuitive to highlight a rule in code view and hit a quick key to toggle it on and off..
Thanks to anyone who helps,
Gary
1 Correct answer
Use code comments to disable highlighted rules.
/*this is a CSS comment*/
<!--this is an HTML comment-->
See screenshots below from CC 2017:
BEFORE COMMENT:
AFTER COMMENT ADDED:
Does that help you?
Copy link to clipboard
Copied
Use code comments to disable highlighted rules.
/*this is a CSS comment*/
<!--this is an HTML comment-->
See screenshots below from CC 2017:
BEFORE COMMENT:
AFTER COMMENT ADDED:
Does that help you?
Copy link to clipboard
Copied
I wonder if there is a way to assign that to a key command,
Thanks

