Open hjnnjh opened 1 year ago
I found that this issue is because VSCode R
uses styler
to format code. However, styler
doesn't support auto-indent when exceeding the max-line-length
now.
This issue is stale because it has been open for 365 days with no activity.
Describe the bug When exceeding the
max-line-length
, the LSP raise a warning called "Lines should not be morn thanyour_max_line_length
characters. line_length_linter"(See the following fig) I tried to reformat the file using the format function provided by R LSP, but it didn't work for this issue. We know that inPython
, there are some formatters likeblack
andautopep8
which can handle this issue easily. Moreover, the formatter inRStudio
can auto-indent too. So I' m wondering if I can do something to fix this issue?Can you fix this issue by yourself? (We appreciate the help) Yes, I tried using a couple of packages used for formatting like
formatR
andstyler
. But it didn't work.Expected behavior Auto-indent when maximum length is exceeded