英文:
How can I set focus to the editor after clicking a file in the Explorer View?
问题
当通过在资源管理器视图中点击选择文件时,文件会打开,但焦点仍停留在资源管理器视图中(在较旧的版本中,焦点会移动到生成的编辑器中)。
我明白可以绑定一个按键来将焦点移动到文件的编辑器,但我更希望焦点能够立即转移到那里。
否则,我选择一个文件,按<kbd>cmd</kbd>+<kbd>F</kbd>以前往其中的某个地方,但当然查找小部件会为文件资源管理器而打开。
英文:
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 <kbd>cmd</kbd>+<kbd>F</kbd> to go somewhere in it, but of course the find widget opens up for the files explorer instead.
答案1
得分: 3
你可以通过在资源管理器视图中双击来将焦点定位到编辑器。(相关问题票)。
有一个功能请求,希望通过单击即可将焦点集中在编辑器上:设置以鼠标单击焦点到编辑器 #166118。<sup><sub>您可以通过给该问题票点赞来表示您对该问题的支持。但请不要发表"我也是"的评论。 "我也是" 的评论通常会让存储库维护者感到烦恼,因为它们会干扰讨论并不提供重要的信息价值。</sub></sup>。
请注意,如果您使用键盘而不是鼠标,按<kbd>enter</kbd>键应该会自动将焦点移到已打开的编辑器。您还可以查看 explorer.openAndPassFocus
和 filesExplorer.openFilePreserveFocus
的键盘快捷键绑定命令。
英文:
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. <sup><sub>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.</sub></sup>
Note that if you're using the keyboard and not the mouse, pressing <kbd>enter</kbd> should automatically move focus to the opened editor. You can also look into the explorer.openAndPassFocus
and filesExplorer.openFilePreserveFocus
keyboard shortcut binding commands.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论