Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Mac shortcuts #4

Closed
aeschli opened this issue Oct 25, 2016 · 2 comments
Closed

More Mac shortcuts #4

aeschli opened this issue Oct 25, 2016 · 2 comments

Comments

@aeschli
Copy link

aeschli commented Oct 25, 2016

Testing microsoft/vscode#14318:

Going through http://sweetme.at/2014/03/10/atom-editor-cheat-sheet/ I found the following shortcuts that we could add as well:

Fold Code ⌥-⌘-[ (-> editor.foldAll)
Unfold Code ⌥-⌘-] (-> editor.unfoldAll)
Convert Tabs to Spaces ⌥-⌘-[ (-> editor.action.indentationToSpaces)
Convert Spaces to Tabs ⌥-⌘-] (-> editor.action.indentationToTabs)

Find Open File ⌘-b (-> workbench.action.showAllEditors)

@pbnj
Copy link

pbnj commented Nov 2, 2016

Also, Atom supports adding new files/directories in their explorer via keyboard shortcuts.
For example:

  • In Atom, when File Explorer is in focus, key a will prompt the user to type a file name (similar to how > Files: New File currently operates in VS Code).
  • In Atom, when File Explorer is in focus, key A (or shift+a) will prompt the user to type a directory name (similar to how > Files: New Folder currently operates in VS Code).

I would love to see these shortcuts ported over to VSCode as well.
Since this is currently possible with the Command Palette in VSCode (see screenshot), I think this should be as simple as binding keyboard shortcuts to skip the Command Palette.
screen shot 2016-11-02 at 3 36 58 pm

I foresee an implementation looking something like:

{
    "mac": "a",
    "win": "a",
    "linux": "a",
    "key": "a",
    "command": "workbench.files.action.createNewFile",
    "when": "explorerFocus"
},
{
    "mac": "shift+a",
    "win": "shift+a",
    "linux": "shift+a",
    "key": "shift+a",
    "command": "workbench.files.action.createNewFolder",
    "when": "explorerFocus"
}

Possible Challenges/Concerns with proposed implementation:

  • I don't think VSCode supports explorerFocus
  • I don't know what is the command used by the Command Palette to create new files and folders.

If the maintainers feel like this should be a separate GitHub Issue, I'd be glad to create a separate GitHub Issue.

@waderyan
Copy link

waderyan commented Nov 4, 2016

Moved these to separate issues to better track the work.

#21
#18
#19
#20

@waderyan waderyan closed this as completed Nov 4, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants