Skip to content

Commit

Permalink
First version
Browse files Browse the repository at this point in the history
  • Loading branch information
tankxu committed May 12, 2020
0 parents commit 4b16d5f
Show file tree
Hide file tree
Showing 5 changed files with 1,205 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.insertSpaces": false
}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CODING Design Token VSCode Snippets

Quickly insert design token value in vscode

CODING Design Token List: http://uikit.coding.fashion/docs#/design-tokens

## Install
Search in vscode marketplace or use ```vsce package``` to package extenion and choose install from a vsix file in vscode.

## Usage

Snippets use [ck-] as a prefix before design token name, so just type ```ck``` in editor you will get the snippets list of design token.

## Running the extension

- Run the `Run Extension` target in the Debug View
- When you type `log` in a JavaScript file, you would see the snippet `Print to console`.
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "coding-design-token-vscode-snippets",
"displayName": "CODING Design Token Snippets",
"description": "CODING design token snippets",
"version": "0.0.1",
"publisher": "tankxu",
"engines": {
"vscode": "^1.28.0"
},
"repository": {
"type": "git",
"url": "https://github.com/Coding/coding-design-token-vscode-snippets.git"
},
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
"path": "./snippets/design-token-value.code-snippets"
}
]
}
}
Loading

0 comments on commit 4b16d5f

Please sign in to comment.