Replies: 2 comments
-
|
Hi @Alexey-T, My point about rangeStart/rangeEnd is specific to Prettier's design, not a critique Key point: Prettier MUST receive the entire file for proper formatting (that's why I use However, Prettier supports formatting only a RANGE within that full file via This is not about CudaFmt needing to change how it works. CudaFmt's current The rangeStart/rangeEnd options are just Prettier-specific configuration that users No changes needed to CudaFmt framework IMHO. Best regards, Hanatarou |
Beta Was this translation helpful? Give feedback.
-
|
This sounds right, thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does CudaFmt expose 'format selection' ok? it does 'fmt sel' when selection is made and main cmd runs. is it like in VSCode/Sublime? maybe they expose separate cmd 'format selection' and usual 'format' always ignores the selection. in this case we can make CmdFmt like they.
@Hanatarou
PS. Sublime has not built-in formatter. it has 2-3 plugins for that. so each plugin can do it differently, so we can ignore ST.
Beta Was this translation helpful? Give feedback.
All reactions