GitHub iconTwitter icon

♾ vscode

Sometimes we just want to highlight, but not install npm package. Like `vscode-graphql` need install `grahql-tag` to enable graphql highlight.

Another option is

const gql = String.raw

const query = gql`
  // code in here will be highlight
`
  1. create project - https://code.visualstudio.com/api/get-started/your-first-extension
  2. debug - just `F5`
  3. publish - https://code.visualstudio.com/api/working-with-extensions/publishing-extension
vsce publish <version> -p <person_access_token>

token find here

alternative

  1. create publisher in https://marketplace.visualstudio.com/VSCode is another alternative

Q&A

  • 401 ,选择全部的`org`重新生成一遍
  • 每次发布如果忘记了`token`,应该去对应的地址再生成一遍
  • 放大 `Option =`
  • 缩小 `Option -`