stkb / Rewrap

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

Feature Request: Indent newlines TODO comments #126

Open renarsvilnis opened 5 years ago

renarsvilnis commented 5 years ago

Hi, first of all thanks for the work and the new autoWrap functionality 😍!

I'd like to propose a feature, where if the first line of "multi-line" comment begins with {TODO|FIXME|NOTE|..}: then the following lines are indented according to the "first line prefix", such as in the example below.

Current behaviour:

// TODO: maybe optimize functions which call processDifferences to only get
// minimum amount of slave data.

Proposed behaviour:

// TODO: maybe optimize functions which call processDifferences to only get
//       minimum amount of slave data.

I find reading comments formatted like this more natural and most-likely would be an by default opted-out feature.

ELLIOTTCABLE commented 5 years ago

I've also done this manually for a long time, and longed for a way to automate it. +1!