Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto focus editor when opening a file as preview from the left bar Explorer? [duplicate]

When selecting a file via click in the Explorer View, it opens, but the focus stays in the Explorer View (in older versions focus would move to the spawned editor).

I get that a key can be bound to move focus to the file's editor, but I'd prefer focus to instead move there.

Otherwise, I select a file, hit cmd+F to go somewhere in it, but of course the find widget opens up for the files explorer instead.

like image 393
Drew O'Meara Avatar asked Nov 30 '25 17:11

Drew O'Meara


1 Answers

You can get focus to go to the editor from the explorer by double-clicking in the explorer view. (related issue ticket).

There's a feature-request to make it so the editor will be focused just by a single click: Setting to focus editor on mouse click #166118. You can show your support for the issue ticket by giving a thumbs up reaction to the issue. But please don't make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don't contribute anything of significant value.

Note that if you're using the keyboard and not the mouse, pressing enter should automatically move focus to the opened editor. You can also look into the explorer.openAndPassFocus and filesExplorer.openFilePreserveFocus keyboard shortcut binding commands.

like image 195
starball Avatar answered Dec 04 '25 13:12

starball



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!