Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 817 Bytes

README.md

File metadata and controls

20 lines (19 loc) · 817 Bytes

Flex Component Schema Hints in VS Code

  1. In VS Code, open the Command Palette (Mac: ⇧⌘P or Windows: Ctrl+Shift+P)
  2. Type and select the Preferences: Open Settings (JSON)
  3. Add the following structure to your list:
    "json.schemas": [
    	{
    		"fileMatch": [
    			"flex.json",
    			"flex-core.json",
    			"flex-properties.js",
    			"flex-advanced-properties.js",
    			"**/flex/*.json"
    		],
    		"url": "https://cdn.jsdelivr.net/gh/mivaecommerce/flex-components/schema/types.json"
    	}
    ]
  4. Now inside a flex.json file you should see IntelliSense hints for possible keys, values, data-types, and descriptions and you can use the keyboard shortcut to show the quick info too (Mac: ⌃Space or Windows: Ctrl+Space)