vscode-clang-format
vscode-clang-format copied to clipboard
Configure VS Code to read the TabSize and InsertSpaces parameters from .clang-format
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.