3

On Visual Studio Code v1.32.3 on Mac OS, and for at least a few versions before this, I am often unable to create files and folders in the sidebar via the default key mappings of a and shift+a, and instead am greeted with a file search / filter.

enter image description here

Typing "a" brings up this filter instead of launching the create file input under the selected folder

Restarting Code restores the file and folder creation behavior for some time, then seemingly out of nowhere the filter behavior takes over again, so I imagine there must be some other key shortcut I'm hitting that toggles the filter behavior.

I don't see any mappings in the default key bindings for those keys that suggest the search / filter behavior is intended:

{ "key": "a", 
  "command": "explorer.newFile",                                     
  "when": "filesExplorerFocus && !inputFocus" },
{ "key": "shift+a", 
  "command": "explorer.newFolder",
  "when": "filesExplorerFocus && !inputFocus" },

I've tried searching the preferences for "Explorer", "Side Bar", and "Filter" but can't find any reference to this filter feature.

So finally my question, how can I restore the file and folder creation behavior or completely disable this filtering behavior? I'm quite happy with cmd+p for finding files.

Or is this a bug? Happy to post issue on GitHub if so.

  • do you solve this problem? – Adara Hv May 11 at 7:27
  • I have not solved this issue. Right now it is not happening to me, perhaps because of new version, however I've made a note to myself to open an issue on GitHub if I experience it again and will post the link here – Joshua Kleckner May 13 at 17:17
  • I asked at vscode repo and answered below :) – Adara Hv May 14 at 9:01
2

use this setting "workbench.list.keyboardNavigation": "simple" and then reload window

source

1

as of vscode 1.33.1 the option is a bool "workbench.list.automaticKeyboardNavigation": false

  • I don't know why this got downvoted. This is the correct answer as of June 8th 2019. – Adam Reis Jun 8 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.