vscode-blade-formatter icon indicating copy to clipboard operation
vscode-blade-formatter copied to clipboard

[Feature]: multi-line comments cleanup

Open livelogic opened this issue 2 years ago • 3 comments

Description

Add the formatter ability to remove extra whitespace at the end of lines within a multiline Blade comment.

Suggested Solution

Example source (line 2 has extra whitespace at the end):

{{--
    comment line 1
    comment line 2                     
comment line 3
    --}}

Expected result:

{{--
    comment line 1
    comment line 2
comment line 3
    --}}

Ideally, this would be default behavior for the formatter.

Indenting multi-line comments would also be nice to have, maybe as a further option. Expected result:

{{--
    comment line 1
    comment line 2
    comment line 3
--}}

Alternatives

No response

Additional Context

No response

livelogic avatar Jul 28 '23 10:07 livelogic

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Sep 27 '23 01:09 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Nov 27 '23 01:11 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jan 28 '24 01:01 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Apr 04 '24 01:04 github-actions[bot]