Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio code: C++ syntax highlighting for classes

Is there a way to get Visual Studio code (Linux) to highlight custom classes and data types for C++?

I want this so that when I create a function that returns a certain data-type, it will highlight it correctly and help with readability at a glance.

like image 441
TimO Avatar asked Jun 13 '17 05:06

TimO


People also ask

How do I change syntax highlighting in VS Code?

To solve this you can Cmd + Shift + P → "install Extensions" and look for the language you want to add, say "Scala". Find the suitable Syntax package, install it and reload. This will pick up the correct syntax for your files with the predefined extension, i.e. . scala in this case.

Does VS Code support C?

C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.

How do you highlight words in VS Code?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.


Video Answer


1 Answers

Here we have the solutions!

vscode cpp team have released a inside builder and can do Syntactic/lexical and semantic colorization

like image 64
Xu Hui Avatar answered Oct 20 '22 20:10

Xu Hui