Reusing the default .clang-format configuration file from the ‘atom-format‘ package
I wanted to try using VS Code for a bit instead of Atom. The default clang format settings in VS Code differed from the defaults used by the ‘atom-format‘ package in Atom, which is what I’ve used up until this point. I wanted to use the same formatting behavior in both environments so that I can freely switch between the two in the future as needed.
Turns out the configuration settings for the atom-format package are readily accessible in the “Config Folder“. Once in settings, select the “Open Config Folder“ button. After the second atom window opens in the root of the ‘.atom’ folder, navigate to packages/atom-format. The .clang-format file therein may be copied and placed in the root directory of the project of interest for reutilization within VS Code; the file is read and used automatically by VS Code.









