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? – ada May 11 '19 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 '19 at 17:17
  • 1
    I asked at vscode repo and answered below :) – ada May 14 '19 at 9:01
  • 1
    Most f***** annoying thing ever it takes over my keyboard whenever making new files grrrr – Dominic Jan 14 at 15:43

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

  • 1
    I don't know why this got downvoted. This is the correct answer as of June 8th 2019. – Adam Reis Jun 8 '19 at 10:08
  • Oops, I think I down-voted by mistake. Just upvoted and marked as accepted answer. – Joshua Kleckner Jun 24 '19 at 16:50
  • For VScode 1.36.1 this answer is still correct. – Plopp Jul 11 '19 at 12:12

UPD see Thomazella's answer

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


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.