Skip to content

Conversation

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Nov 9, 2018

The ISE had a keybinding (Ctrl+J) that would open up a list of all the snippets you have available.

This adds a keybinding for the same thing in VSCode.

Unfortunately, Ctrl+J wasn't available... it's set to "Toggle Pane". So a similar keybinding was added:

Ctrl+Alt+J on Windows & linux
Cmd+Alt+J on macOS

Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have an issue with this one in particular but we should be cautious about adding too many key binds to default VSCode commands. If someone isn't coming from the ISE, then a language extension adding this key bind would likely not be desired.

We really need a welcome/first run experience that asks if they want to enable something like "ISE Compatibility Settings". Side note, that'd probably also be a good place to ask if they want strict PSSA defaults.

@rjmholt
Copy link
Contributor

rjmholt commented Nov 13, 2018

@SeeminglyScience That first-run experience is a great idea!

@TylerLeonhardt
Copy link
Member Author

I like that idea. It would be nice to have something similar to how gitlens has their first-run experience

@TylerLeonhardt TylerLeonhardt merged commit 452d5ac into PowerShell:master Nov 13, 2018
@TylerLeonhardt TylerLeonhardt deleted the add-snippet-keybinding branch November 13, 2018 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants