Skip to content

Configure VS Code to read the TabSize and InsertSpaces parameters from .clang-format #171

Description

@ujos

Could you modify the plugin to adjust the TabSize and InsertSpaces VS Code global settings based on detected .clang-format?

I use VS Code for two different projects that have different standards. In one projects they use Spaces instead of tabs. In the another projects they use Tab characters. VS Code is configured to use Spaces. Both projects use clang-format tool for the code formatting.

The problem is if I press the Tab button while working on the Second project, the editor inserts spaces instead of tabs. So I have to remember to reformat the code before I commit it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions