adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Ctrl-Alt-C / Ctrl-Alt-X not working #11914

Open mynimi opened 8 years ago

mynimi commented 8 years ago

I'm having trouble with the code folding shortcuts. Atl-1 and Alt-Shift-1 do work for collapsing and expanding everything but whenever I just want to work with collapse current, I always need to click the arrows which gets quite annoying, as I am used to using shortcuts. Tried reloading brackets without extensions, still not working.

Also, the shortcut is not listed in the menu, but I remember it working before (haven't used it in a while, I think it was before the extension made it into core) But it's listed within the brackets shortcuts codefolding

I'm using the current Brackets version (Release 1.5 build 1.5.0-16538 (release cf9cf4698)), Win10, with a Swiss German Keyboard.

danicholls commented 8 years ago

Slightly different, but perhaps the same root cause: ctrl + z works for a little bit and then breaks. (Also running current version, Win 8).

mseiler025 commented 8 years ago

For me the defaults are Ctrl+Alt+[ for Collapse Current and Ctrl+Alt+] for Expand Current.

you can see the keybindings by doing the following:

it will return a keymap object which you can expand and look through to find the keybindings

you can manually override the keybindings - https://github.com/adobe/brackets/wiki/User-Key-Bindings

see bottom of the page for example - https://github.com/adobe/brackets/wiki/User-Key-Bindings#import-windows-key-bindings-from-sublime-text

the command id for collapse current is codefolding.collapse

the command id for expand current is codefolding.expand

this extension might help also https://github.com/redmunds/brackets-display-shortcuts

mynimi commented 8 years ago

Thx for the tips, I will go check that and report back if I can figure it out.