question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CMakeLists.txt is not syntax highlighted

See original GitHub issue

Brief Issue Summary

CMakeLists.txt is not syntax highlighted

Expected:

When I open CMakeLists.txt, expected syntax highlight and intellisense.

Apparent Behavior:

It is opened as a plaintext, and if I want to change the language association, there is no “Cmake” - the closest thing is makefile.

CMake Tools Log

None

Platform and Versions

[[For issues, fill out the following. Otherwise delete this section.]]

  • Operating System: macOS
  • CMake Version: 3.11.4
  • VSCode Version: 1.26.1
  • CMake Tools Extension Version: 1.1.1
  • Compiler/Toolchain: Clang

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:162
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
YaniManstercommented, May 21, 2020

“CMake Tools provides the native developer a full-featured, convenient, and powerful workflow for CMake-based projects in Visual Studio Code.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code syntax highlighting for CMakeLists.txt
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...
Read more >
Syntax highlighting issue with CMakeLists.txt
When viewing CMakeLists.txt, the the first character of the functions SET and SET_TARGET_PROPERTIES are not colored. ... This issue is read only, because...
Read more >
Issues with Auto-generated CMakeLists.txt for syntax ...
I'm having issues to get the syntax highlighting working with the biggest repo. Usually, I just auto-generate the CMakeLists.txt and ...
Read more >
CMake syntax highlighting not working as expected
The issue it turns out is a conflict with the Rainbow Parenthesis plugin: https://github.com/kien/rainbow_parentheses.vim, which is too bad ...
Read more >
Bug #1018397 “Syntax not highlighted in CMakeLists.txt files”
When I open any CMakeLists.txt file, the syntax looks like a plain text. - I have x-cmake.xml in /usr/share/mime/text, automatically generated and with ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found