A question about line length linter 80 characters

Viewed 2351

I use R in vscode, when the line has more than 80 characters , it will throw a note with a wavy line : Lines should not be more than 80 characters. line_length_linter. But i do not find it in lint for R to chage it. Moreover , in the setting.json, I do not know the name of parameter configuration though i search it in the internet.enter image description here

1 Answers

Just faced the same issue. I found a workaround suggested for Atom IDE and it works for VSCode too.

Create a .lintr file in your project folder and add this one line:

linters: with_defaults(line_length_linter=line_length_linter(100))

For more configuration options, check the lintr package documentation.

Related