Trigger Code Insight

When working with code editors, you can invoke insights either by pressing Ctrl+Space or by entering a trigger character such as the dot (.) in the JavaScript editor. Here's how you can use insights in the different editors:

Editor Use this to trigger insight:
HTML
  • Enter the left-angle bracket (<) to trigger HTML tag insight.

  • Press Ctrl+Space to trigger HTML attribute name insight. Insight automatically kicks in after you enter two characters from the attribute name.

  • Press Ctrl+Space to trigger attribute value insight inside an HTML attribute value, double brackets ([[ ]]), or double braces ({{ }}).

    If the HTML is well formed, insight kicks in after you enter two characters of the expression. For example, entering <div title="[[ $a ]]"> triggers attribute value insight for expressions after $a, as shown here:


    Image showing attribute value insight triggered triggered for expressions after $a when you enter <div title="[[ $a ]]".

  • Enter any character to trigger insight in CSS files.

JavaScript

Enter any character to trigger insight. URL selector and standard imports for a module are not supported.

JSON

Enter any character to trigger insight based on the file's associated JSON schema.