Replies: 2 comments 1 reply
-
I suspect this may be happening because of this: positron/extensions/positron-r/package.json Line 358 in fd2186c We contribute a default What I recommend is that you additionally set your preference for R specifically: "[r]": {
"editor.tabSize": 4
} Can you try that out and see if that keeps you from seeing that super weird behavior? |
Beta Was this translation helpful? Give feedback.
-
That seems to be working so far, thanks! Checking the docs on https://positron.posit.co, I don't see a page explaining all the different places where preferences are set and how they're prioritized when they conflict. If that's genuinely missing, I can create a feature suggestion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying out Positron this week, and after struggling a lot with indentation I've hit upon an especially baffling pattern. I could use some help trying to figure out what's going on.
I have a folder structure (simplified) as follows:
I don't have a
settings.json
orair.toml
within this folder structure.I open Positron, then open the top-level folder. Both script files are open in editors. Making no changes to either file, I hit save for
script1.R
and it's formatted witheditor.tabSize
orindent-width
as 2. I do the same thing withscript2.R
and it's formatted with 4 (which is what I want).I completely close Positron, reopen it, repeat as above.
script1.R
is formatted with tab size/indent of 4, andscript2.R
with a tab size/indent of 2.Close and repeat, and the formatting is swapped again. This pattern repeated through maybe six attempts. Now
script1.R
is stable with a tab size of 2, andscript2.R
at 4.Pasting my user settings file below.
Beta Was this translation helpful? Give feedback.
All reactions