fidley / ABAPQuickFix

ABAP Quick Fix
https://abapblog.com
MIT License
42 stars 9 forks source link

Replace full line comment with in-line comment #28

Closed g-back closed 2 years ago

g-back commented 2 years ago

Replace comments that start with * at the start of the line with inline-comments " Unlike Full-Line Comments, Inline-comments are automatically indented, making them (imo) a lot easier to read.

Single Line or whole file (whole file: setting to be enabled) Should be done easily with Regex since * has to be first character of line.

Will try this myself (if you give the ok)

fidley commented 2 years ago

Will try this myself (if you give the ok) Sure! thanks!

MDagni commented 2 years ago

Single Line or whole file (whole file: setting to be enabled)

Instead of whole file, could you make it "for selected lines"? Because sometimes I use the * comments to separate sections, so I would like them to stay as they are, and replace others between them.

g-back commented 2 years ago

Yes, I think that's the better approach. Also the current implementation is a bit buggy, as it replaces ALL full line comments between statements. Will refactor it so it behaves more like the "remove comments in selection" quick fix

fidley commented 2 years ago

This sounds like a good plan ;)