Skip to content

Suboptimal hotkey workflow for "find in files" #17324

@gianlucaborello

Description

@gianlucaborello
  • VSCode Version: 1.9.0-insider
  • OS Version: macOS 10.12.2

First of all, I love this editor, it's making me switch away from Sublime and vim.

However, working on a very large code base (the Linux kernel), I have a workflow that is suboptimal. I heavily rely on the "find in files" feature, as the C/C++ intellisense can't go far enough to solve all the things I usually look for (think: nested macros and such), which is totally ok.

So, this is my typical workflow:

  1. CMD+Shift+F, enter the text to search and press enter
  2. I get many matches, and usually I need to scan through the matching occurrences (in preview mode in an editor) in order to fully understand the one I need (the line shown in the side bar is usually not enough). In Sublime (or vim), I can quickly open an editor showing the matching occurrences using F4/Shift-F4.

In Code, using the keyboard the two only options I can find are:

  • In the search side bar, press "down" until I highlight a match, and then I can open the file pressing "enter". However, this makes me lose the focus in the side bar, so it becomes super inefficient if I want to switch to the next matching file.

  • If, at the previous step, I press "space" instead of "enter", the file gets opened but I don't lose the focus, which is already much better, but less than ideal because to go to the next occurrence I still have to press first "down" twice and then "space" again, and the fact that it's not documented makes me a bit uncomfortable, as I heavily rely on this hotkey.

It seems like having hotkeys to jump to the next occurrence while in the side bar is definitely a common case for relatively power users. It's literally an operation I do hundreds of times a day, so every bit of efficiency I can gain is huge (and it's standard in Sublime and of course customizable in vim).

Thanks!

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitysearchSearch widget and operation issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions