Skip to content

Air: Setup Workspace Folder #323

Closed

Description

@DavisVaughan

Copy the VS Code parts of the usethis::use_air() function into a command, so setting up Air for the first time would be:

  • Air: Setup Workspace Folder
  • Air: Format Workspace Folder

Details:

  • Requires a workspace folder to be open, asks user to select one if multiple are open (reuse Format Workspace Folder infra for this)
  • Make empty air.toml
  • Add or update settings.json
  • Add or update extensions.json

settings.json:

{
    "[r]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "Posit.air-vscode"
    }
}

extensions.json

{
    "recommendations": [
        "Posit.air-vscode"
    ]
}

Activity

  1. DavisVaughan commented on Jul 21, 2025

    @DavisVaughan
    CollaboratorAuthor

    @mine-cetinkaya-rundel said she would prefer this for setting up new data analysts with Air over requiring usethis::use_air() as the first step, due to them not knowing too much about package development yet

    It also seems like it makes sense to me to have this integrated into the extension

    Note that usethis::use_air() is still valuable for other IDEs like RStudio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions