I am using ROS and C++ and ROS packages have a CMakeLists.txt
in them. I would like to have a syntax highlighting for CMakeLists.txt in visual studio code.
Unfortunately, I searched on the internet but I can't find how to do this.
Could you help me?
VS Code uses TextMate grammars as the syntax tokenization engine.
Below is how to do it. It is quite straightforward (with an extension):
CTRL+P
- Launch VS Code Quick Open ext install twxs.cmake
- Install the extension "CMake For VisualStudio Code"I hope this will help someone else.
p.s. It is always like that. I search for a long time, I don't find an answer. Then I post the question here and I immediately find the answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With