Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RoughlyNew to Visual Studio Code? Get it now.
Roughly

Roughly

Felix Andreas

|
23 installs
| (3) | Free
R language support
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Roughly

This extension provides support for the R programming language, including workspace symbol search, code formatting, and syntax diagnostics.

Note The VS Code extension from the marketplace includes a bundled version of the Roughly CLI only for Windows and Linux x64. If you are using macOS or a different architecture, you will need to install the Roughly CLI manually.

Features

Roughly aims to support the following language server features (some are experimental or in progress):

  • Formatting

    • Format entire document
    • Format selected code range (🧪 experimental)
  • Navigation

    • Index global variables, S4 and R6 classes/methods
    • Search current document - Ctrl + Shift + O in VS Code
    • Search global workspace - Ctrl + T in VS Code
    • Go to definition
    • Find all references (🧪 experimental)
  • Diagnostics

    • Syntax errors - including missing or trailing commas
    • Basic linting rules - full list here
    • Warning for unused variables (🧪 experimental)
    • Error for undefined variable (⚠️ missing)
    • Argument validation for function calls (⚠️ missing)
    • Type checking (💡 early design phase)
  • Editing

    • Autocomplete local and global variables
    • Autocomplete variables from other packages (⚠️ missing)
    • Rename local variables (🧪 experimental)
    • Rename global variables (⚠️ missing)
    • Signature help (🔨 work in progress)

Usage

The extension will automatically start the Roughly language server for R files. You can also use the built-in commands to start, stop, or restart the server, or open logs.

Configuration

You can customize the Roughly extension in VS Code through the following settings:

{
  // Use a custom binary instead of the bundled one
  "roughly.path": "/path/to/roughly",
  // Pass custom arguments; defaults to ["server"]
  "roughly.args": ["server", "--verbose"],
  // Enable experimental features
  "roughly.experimentalFeatures": ["rename", "range_formatting"],
}

Highlights

Format Document

Format Document

Workspace Symbol Search Ctrl + T

Workspace Symbol Search

Document Symbol Search Ctrl + Shift + O

Document Symbol Search

Syntax Errors

Syntax Errors

Links

  • 📦 Source Code
  • 📚 Documentation
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft