This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218820

Summary: Commenting out with shortcut in .css file does not work
Product: editor Reporter: rozwell
Component: Key bindingsAssignee: Svata Dedic <sdedic>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description rozwell 2012-09-22 10:33:30 UTC
Hello,

For some time now commenting out  with shortcut is not working in .css files. Just nothing happens.
If I comment something manually, it's highlighted correctly.

Works fine in .php or .html files, among <style> tag.
Comment 1 Svata Dedic 2012-09-24 10:17:08 UTC
Could not reproduce in 7.3dev on a randomly picked css file. I tried CTRL+/ and Ctrl+Shift+C on:
- selector line
- inside css rule
- one-line rules (start, end, in the middle of the line)
Everything works. If it is possible, please attach the CSS file, describe the position at which I should inspect the behaviour. Please also zip & attach your $userdir/config area - subfolders "Shortcuts" and "Keymaps" at least, so I can check and possibly debug your key binding setup. Thanks.
Comment 2 rozwell 2012-09-24 10:46:07 UTC
(In reply to comment #1)
> Could not reproduce in 7.3dev on a randomly picked css file. I tried CTRL+/ and
> Ctrl+Shift+C on:
> - selector line
> - inside css rule
> - one-line rules (start, end, in the middle of the line)
> Everything works. If it is possible, please attach the CSS file, describe the
> position at which I should inspect the behaviour. Please also zip & attach your
> $userdir/config area - subfolders "Shortcuts" and "Keymaps" at least, so I can
> check and possibly debug your key binding setup. Thanks.

I was using latest stable build from hudson
http://bertram.netbeans.org:8080/job/PHP-build/
Nothing worked for me via Ctrl+Shift+C and CTRL+/ with any .css file.

I've checked keymaps before but didn't change them since they were correct... With your feedback, I changed one shortcut and... it's working!

I did not change my config for months, so I guess something has changed and I had simply to resave it.

Thank you very much :)
Comment 3 rozwell 2012-09-24 10:56:12 UTC
And oh, to be more precise:
I didn't touch toggle-comment but added shortcut ctrl+shift+/ to "Comment" (was not set), checked - it worked and others started to work again too. Then I removed just added shortcut and it works fine.
Comment 4 Svata Dedic 2012-09-25 15:20:48 UTC

*** This bug has been marked as a duplicate of bug 218976 ***