clang-format with .glsl files
Answered
How can I enable clang-format for .glsl files in CLion? It seems to be possible with cpp files only.
If I run:
clang-format -i myshader.glsl
on the shell, it works perfectly. If I choose reformat code in CLion nothing happens.
Please sign in to leave a comment.
Hello!
You can try using File Watcher to apply clang-format on Save for .glsl files: https://www.jetbrains.com/help/clion/using-file-watchers.html
Also feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-1536.