Skip to content

Update VS Code settings to use base R style indentation #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hturner opened this issue Jun 2, 2025 · 0 comments
Open

Update VS Code settings to use base R style indentation #219

hturner opened this issue Jun 2, 2025 · 0 comments
Assignees

Comments

@hturner
Copy link
Member

hturner commented Jun 2, 2025

R code in base R uses a tab display size of 8.

However, we also want pressing the tab key to mean indentation (with 4 spaces per indent), not tab character (8 spaces).

So the settings.json file should have:

"editor.tabSize": 8,
"editor.indentSize": 4
"editor.detectIndentation": false,

We need to set editor.detectIndentation to false to get tabSize/indentSize to work, see microsoft/vscode#155450 (comment).

The VS Code settings for the container are defined in .devcontainer/devcontainer.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants