Syntax selector cheat sheet


Does anyone have a cheat sheet for selectors and their specific languages? I’m working on a syntax theme and I’m finding myself inspecting every element that I’m trying to experiment with, which is becoming quite cumbersome.

  1. Put your cursor on the text that you want to highlight
  2. Press Cmd+Alt+P on OS X or search the Command Palette for “Editor: Log Cursor Scope” on other platforms to see what the key binding is there :smile:

A notification will pop up with the scopes for that location. There are some basic conventions, but it is really free-form. It is generally just best to take a look at code and see what the scopes are set to.


Great! That’s much quicker, thanks @leedohm!