You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The find in Files (⇧⌘F) keyboard shortcut focuses the editor instead of highlighting the current search term on subsequent executions.
Contrary to most editors, while the search field is focused, the second press of ⇧⌘F causes the right-hand editor pane to become focused. This then inadvertently becomes the cause of potential erroneous character entry into the currently loaded buffer.
Under normal behavior, I would expect to:
Press ⇧⌘F
Type a search term and press enter to execute search
Not find what I'm looking for, press ⇧⌘F again to highlight existing term
Type a new search term and press enter to execute the new search
Proposed solution
After a search, the next call to Find in Files (⇧⌘F) would highlight the current search term instead of the editor. Subsequent calls would toggle back to editor focus. In addition, if no search was performed initially, the subsequent call would again return to the editor. This would: 1. Only minimally affect existing behavior; 2. Bring current behavior into line with most other editors, and 3. Maintain the ability to toggle between the search field and the editor.
This is by design, but there have been a lot of issues about this, and I'm second guessing this behavior as the default, and I want to leave this open and consider this for some point in the future.
roblourens
added
bug
Issue identified by VS Code Team member as probable bug
and removed
under-discussion
Issue is under discussion for relevance, priority, approach
labels
Jun 26, 2018
The Issue
The find in Files (⇧⌘F) keyboard shortcut focuses the editor instead of highlighting the current search term on subsequent executions.
Contrary to most editors, while the search field is focused, the second press of ⇧⌘F causes the right-hand editor pane to become focused. This then inadvertently becomes the cause of potential erroneous character entry into the currently loaded buffer.
Under normal behavior, I would expect to:
Proposed solution
After a search, the next call to Find in Files (⇧⌘F) would highlight the current search term instead of the editor. Subsequent calls would toggle back to editor focus. In addition, if no search was performed initially, the subsequent call would again return to the editor. This would: 1. Only minimally affect existing behavior; 2. Bring current behavior into line with most other editors, and 3. Maintain the ability to toggle between the search field and the editor.
VS Code Info
Steps to Reproduce:
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: