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
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: