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

Place a file in the selected folder when adding via keyboard shortcut #4

Closed
loreggia opened this issue Apr 18, 2021 · 1 comment
Closed

Comments

@loreggia
Copy link

Adding a class or interface using keyboard shortcuts bound to the respective actions should place the newly created file in the currently selected folder in the explorer window.

Currently it always places files created via keyboard shortcuts in the root folder, which in my opinion is almost never the desired behaviour.

I'm used to using the ReSharper shortcuts in VS (Alt+Ins, C / Alt+Ins, I) so it would be nice if this worked similarly.

@loreggia
Copy link
Author

Ok, I was looking into this myself a bit and it seems the VS Code API does not expose the currently selected files/folders anywhere (at least when using shortcuts), so it seems that this wouldn't be possible until MS implements that.
microsoft/vscode#3553
microsoft/vscode#117820

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

No branches or pull requests

1 participant