Skip to content
Visual Studio Code extension for developing applications powered by Sanity.io
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Initial commit Dec 11, 2018
fixtures Initial commit Dec 11, 2018
grammars Initial commit Dec 11, 2018
images Initial commit Dec 11, 2018
language Initial commit Dec 11, 2018
.gitignore Initial commit Dec 11, 2018
.npmignore Initial commit Dec 11, 2018
.vscodeignore Initial commit Dec 11, 2018
CHANGELOG.md Initial commit Dec 11, 2018
README.md Initial commit Dec 11, 2018
package-lock.json 0.0.2 Dec 11, 2018
package.json 0.0.2 Dec 11, 2018

README.md

vscode-sanity

Extension for Visual Studio Code that makes developing applications for Sanity.io that much more awesome.

Features

GROQ syntax highlighting

Syntax highlighting for the GROQ query language is available in the following situations:

  • Files with the .groq extension
  • Fenced code blocks in Markdown with the groq tag
  • Tagged template literals with the groq tag
  • Template literals prefixed with the /* groq */ comment
  • Template literals starting with a // groq comment

Usage

Install the VSCode Sanity.io Extension. This extension adds syntax highlighting for GROQ-files and groq tags.

Development

  1. Clone the repository - https://github.com/sanity-io/vscode-sanity
  2. npm install
  3. Open it in VSCode
  4. Go to the debugging section and run the launch program "Extension"
  5. This will open another VSCode instance with extension enabled
  6. Open a file that should be syntax highlighted
  7. Make changes to the extension code, then press (Ctrl+R or Cmd+R on Mac) in the syntax highlighted file to test the changes

License

MIT

You can’t perform that action at this time.