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
Right now, the View: Reset Zoom editor command does not have a default keyboard shortcut mapping. To keep consistent with other software, especially Internet browsers such as Internet Explorer, Microsoft Edge, Google Chrome, etc. I'd suggest mapping CTRL + 0 to View: Reset Zoom as a default keyboard shortcut.
This keybinding is currently used to focus the sidebar so that you have a nice logical keybinding model of Ctrl+0 being sidebar and Ctrl+1/2/3 to focus an editor group.
Benjamin Pasero (@bpasero) I do not know if that is what it says: 😕
The cursor is in the editor, if you press Ctrl + Shift + E once, move to the view explorer, if you press it again "back" the course to the editor.
Using Ctrl + 0 does not do it right?
Would that be the difference, or not? If possible show a gif with the difference by pressing the keys.
Tekbr the difference is that Ctrl+Shift+E (E for EXPLORER) opens the explorer and Ctrl+0 focusses the view that is currently active. Sorry, I am not sure how to explain that any better, maybe someone else can.
👍 Jake Harclerode (@Yahkob) Our keybinding system is written in such a way that you can change absolutely everything and this use-case is one of the most simple:
In the latest version of VSCode, version 1.8.1, the following changes were added:
On Mac OS X, the CMD + NUMPAD 0 keyboard shortcut is bound to View: Reset Zoom
On Windows, the CTRL + NUMPAD 0 keyboard shortcut is bound to View: Reset Zoom
Neither of these are usable though, because:
The Macbook Pro does not have a numeric keypad
Most Windows laptops don't offer numeric keypads (including my Dell XPS 9350)
There has got to be a better solution to this, yeah?
Since Apple[e] desktop machines ship with a numeric keypad and laptops don't, and assuming all OS X users are using Apple hardware, we would need to know what percentage of OS X users run a desktop vs laptop for this default binding to be confirmed as a poor decision
Do you know what the percentage split is?
Disclaimer: I run a Macbook Pro and I do find this default binding strange but I understand there are other (OS X) users with numeric keypads
Reset zoom have default shortcut of ⌘+Numpad0 is really bad on the Mac. The vast majority of Mac users are surely using Macbook Pro, not Mac/iMac, so we don't have any numpad.
Just make any default shortcut that is able to be pressed on MBP. Since the conventional ⌘0 is already mapped to workbench.action.focusSideBar, may I suggest ⇧⌘0? It's currently unused in the default keymap 👍
Reacted by Felix Itzenplitz, sgon00, Adil Sadik, Michael Reynolds, Robin Hamill, hesselmonk, Lucas Caton, JR Shampang and ShiGuangAlex
Unfortunately all the keyboard shortcuts with KeyCode.KEY_0 seem to be occupied. Please see #15840 (comment) for a solution by changing this keybinding as needed.
Activity
Tekbr commentedon Dec 2, 2016
Similar to issue #14979 ? But I still had no response from alexandrudima !!
pcgeek86 commentedon Dec 5, 2016
Tekbr thanks for pointing out that issue report. It does appear similar.
alexdima commentedon Dec 12, 2016
fyi Benjamin Pasero (@bpasero)
bpasero commentedon Dec 12, 2016
This keybinding is currently used to focus the sidebar so that you have a nice logical keybinding model of
Ctrl+0being sidebar andCtrl+1/2/3to focus an editor group.pcgeek86 commentedon Dec 12, 2016
Benjamin Pasero (@bpasero) I recently figured this out. It is convenient to have
CTRL + 0map to the sidebar.Do you have an alternative suggestion for how this request could implemented, consistent with other programs?
bpasero commentedon Dec 12, 2016
Maybe this should go into a keymap extension to make it "consistent" with whatever the extension is about (Sublime, Atom).
Tekbr commentedon Dec 13, 2016
Benjamin Pasero (@bpasero)
Ctrl + Shift + Edoes the same thing asCtrl + 0, does not it? I tried on Windws 10, 1.8.0 - insider.If so, please change
Ctrl + 0to Reset Zoom. This does not require an extension for this.bpasero commentedon Dec 13, 2016
Tekbr no it does not:
Tekbr commentedon Dec 13, 2016
Benjamin Pasero (@bpasero) If not, what does
Ctrl + Shift + Edo? I'm confused now. 😕bpasero commentedon Dec 14, 2016
Tekbr if opens/focus the explorer view. there are keybindings for each view. Ctrl+0 just moves focus to whatever view is active.
Tekbr commentedon Dec 14, 2016
Benjamin Pasero (@bpasero) I do not know if that is what it says: 😕
The cursor is in the editor, if you press
Ctrl + Shift + Eonce, move to the view explorer, if you press it again "back" the course to the editor.Using
Ctrl + 0does not do it right?Would that be the difference, or not? If possible show a gif with the difference by pressing the keys.
bpasero commentedon Dec 14, 2016
Tekbr the difference is that
Ctrl+Shift+E(E for EXPLORER) opens the explorer and Ctrl+0 focusses the view that is currently active. Sorry, I am not sure how to explain that any better, maybe someone else can.3 remaining items
Tekbr commentedon Dec 15, 2016
Benjamin Pasero (@bpasero) Now I see the difference. 😄
Thank you. And once again I'm sorry. 😊
pcgeek86 commentedon Dec 22, 2016
In the latest version of VSCode, version 1.8.1, the following changes were added:
CMD + NUMPAD 0keyboard shortcut is bound toView: Reset ZoomCTRL + NUMPAD 0keyboard shortcut is bound toView: Reset ZoomNeither of these are usable though, because:
There has got to be a better solution to this, yeah?
Yahkob commentedon Feb 14, 2017
Quick fix for those mildly irritated like me add this to preference/keymaps :)
alexdima commentedon Jun 1, 2017
👍 Jake Harclerode (@Yahkob) Our keybinding system is written in such a way that you can change absolutely everything and this use-case is one of the most simple:
NinoFloris commentedon Jun 6, 2017
Came here to report this but basically want to write this
#15840 (comment)
This is an utterly stupid default binding :')
ldexterldesign commentedon Jul 26, 2018
Hi Nino Floris (@NinoFloris),
Since Apple[e] desktop machines ship with a numeric keypad and laptops don't, and assuming all OS X users are using Apple hardware, we would need to know what percentage of OS X users run a desktop vs laptop for this default binding to be confirmed as a poor decision
Do you know what the percentage split is?
Disclaimer: I run a Macbook Pro and I do find this default binding strange but I understand there are other (OS X) users with numeric keypads
Regards
[e] https://www.apple.com/mac/
gandalfsaxe commentedon Aug 14, 2018
Reset zoom have default shortcut of ⌘+Numpad0 is really bad on the Mac. The vast majority of Mac users are surely using Macbook Pro, not Mac/iMac, so we don't have any numpad.
Just make any default shortcut that is able to be pressed on MBP. Since the conventional ⌘0 is already mapped to
workbench.action.focusSideBar, may I suggest ⇧⌘0? It's currently unused in the default keymap 👍lucascaton commentedon Jul 25, 2019
Hi there.
Any news on this?
bpasero commentedon Oct 8, 2019
Unfortunately all the keyboard shortcuts with
KeyCode.KEY_0seem to be occupied. Please see #15840 (comment) for a solution by changing this keybinding as needed.gandalfsaxe commentedon Oct 20, 2019
Benjamin Pasero (@bpasero) But how is this an acceptable default for the Mac though? See my comment above.
bpasero commentedon Oct 21, 2019
Gandalf Saxe (@gandalfsaxe) if you can come up with a good keybinding, fire up a PR and I can have a look.