Skip to content

Positron extension: convert tabwidth spaces to tabs #128

@hturner

Description

@hturner

Some IDEs will automatically convert a set number of spaces to a tab.

This is the convention in C source files in the R codebase, specifically every 8 spaces in an indent is converted to a tab.

Unfortunately, Positron and VS Code do not currently support this: it is possible to define settings so that the C source files are displayed correctly, but not so that they can edited/written correctly.

The skeleton of a Positron extension to automatically convert tabwidth spaces to tabs has been created by @SaranjeetKaur: r-devel/auto-tabs#1. Help is wanted to further develop the extension.

Documentation on writing a Positron extension is provided here: https://positron.posit.co/extension-development.html. To begin developing the extension, you will need :

  • Basic familiarity with TypeScript/JavaScript and npm
  • An up-to-date version of Positron installed
  • Node.js (version 18 or greater)

This is a breakout issue from #105.

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavascriptMiscIssues that cannot be classified otherwiseSIP 2025Issues reserved for R Dev Day @ SIP 2025

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions