Sublime Forum

Highlighted line when writing C++ classes

#1

Hello!

How do I get rid of this highlighted line? See attached image.

0 Likes

#2

That looks like scope highlighting, meaning it’s probably identifying something as wrong. Place the cursor on that line, in the highlighted line and press cmd+alt+p. This will show you the scope being applied there. I don’t know what it’s complaining about though. I entered the same content into a C++ file on my machine and I didn’t see any highlight. Though it’s possible my theme or syntax highlighter doesn’t identify that scope.

0 Likes

#3

It says source.c++.meta-struct.-block.c++ invalid.illegal.you-forgot-semicolon.c++

0 Likes

#4

I didn’t see any highlight line either. You could try to reset Sublime since that may fix it. Also, which version of Sublime are you using?

0 Likes

#5

I’m using Sublime Text 2, version 2.0.1, build 2217

How do I reset Sublime?

0 Likes