clang-format with .glsl files


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.

1 comment
Comment actions Permalink


You can try using File Watcher to apply clang-format on Save for .glsl files:

Also feel free to comment or upvote


Please sign in to leave a comment.