stkb / Rewrap

Rewrap extension for VSCode and Visual Studio
https://marketplace.visualstudio.com/items/stkb.rewrap
Other
499 stars 58 forks source link

Feature request #363

Open lsmith999999 opened 1 year ago

lsmith999999 commented 1 year ago

Hi there,

First, thanks for a great tool. I'm the author of TranSolution (http://www.hexadigm.com) and really appreciate your efforts. Not sure if this is where feature requests go but I've got one that may be fairly simple to implement (don't know). I'm forever wrapping comments in Visual Studio and would like to be able to set the wrapping area on-the-fly (read on), without having to rely on the ruler guideline via the Editor Guidelines extension. To be honest, while it's not terribly difficult to use the extension, it's still cumbersome and unwieldy IMHO (to set a ruler guideline each time you want to wrap a comment and then clear the guideline when done).

A much better alternative IMHO if (easily) doable is to simply wrap all text inside the currently selected text block, or at least rely on the right-most column of the currently selected block as an alternative to the Editor Guidelines extension (if too difficult to confine wrapping to the selected text box itself, though if not, maybe an option can control which to use - wrap the entire block only or just rely on the right-most column of the block). That is, if I highlight a block of text as currently described here https://msdn.microsoft.com/en-us/library/729s2dhh(v=vs.100).aspx (Google for "How to: Select and Change Text Visual Studio" if the link is now dead), it would be nice if I could then format everything in that block using using "Alt+Q" (or again, using the right-most column of the block if it's too much work to just confine things to the block itself). No ruler guideline would then have to be entered (and subsequently cleared after wrapping), since the text block itself replaces it (the right-most column of the block anyway). The Editor Guidelines extension therefore wouldn't even be needed, since the block itself defines the wrapping area.

For instance, it's very fast to simply hold the "Alt" key down, drag your mouse to create the rectangular block your want to wrap (try it), and then click "Atl+Q". Maybe it's something you might consider implementing if not too difficult (I realize this is a free tool). Thanks for your consideration (appreciated) and for the tool as it even currently exists (it's been a great help to me).

ElectricRCAircraftGuy commented 9 months ago

@lsmith999999 , this seems like a good suggestion, but that's way too much text to read to try to figure out what you want done. I recommend you pare it down to a simple set of instructions so that the maintainer can get the point as quickly as possible:

Hi, I love your tool. Thank you for writing it. I have a feature request. Please make it so you can:

(Tutorial-style descriptive steps go here)

  1. etc. etc.

Also, make the title of the issue more descriptive: Feature request: (some useful description here).