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

Improvement ideas #2

Open
BreyerW opened this issue May 11, 2023 · 0 comments
Open

Improvement ideas #2

BreyerW opened this issue May 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@BreyerW
Copy link

BreyerW commented May 11, 2023

Im opening this issue following devblog announcement of this experiment. I already wrote few ideas there but since devblog comments section is quickly forgotten i decided to copy these ideas here:

YES! Ever since i switched from monodevelop to visual studio i wished for something like this. That was about a decadde ago by then monodevelop had this already built-in. Yes VS has Surround With command but thats clunky to use compared to this. I tried to make custom key combo for this command but from what i remember (i attempted this almost decade ago so my memory is fuzzy) you couldnt bind this command to just two keys like Shift + ” it had to be 3 keys at once making it too annoying to use.

BTW consider adding support for surround with multiline comment characters with Shift or Alt pressed. Eg for C# pressing Shift (or Alt) + / would produce /**/ (thats how it worked in monodevelop if memory serves right), for Python Shift + ” produces “”” “”” etc. I suggest adding extra key for comment characters specifically to disambiguate for languages that have such ambiguities like Python.

I think out of all surround variants i would use comment one the most cause when im debugging i often want to temporarily disable multiline sections of code

Edit:

Or maybe generalize feature by always requiring selection + Shift + any character. When i say any character i mean it. Dont limit this extension to select few characters like now. Then producing multiline comments for C# would be as simple as making selection once, holding shift and typing /* for Python it would be 3x ” etc. Experience will be slighty worse than current one but generalization i believe is easily worth slight inconvenience of holding shift (or Alt maybe if Shift would be blocking too many combos)

@BreyerW BreyerW added the enhancement New feature or request label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant