-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit be3b087
Showing
10 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Set default behavior to automatically normalize line endings. | ||
* text=auto | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// A launch configuration that launches the extension 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": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Change Log | ||
|
||
All notable changes to the "kodi-skin-snippets" extension will be documented in this file. | ||
|
||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. | ||
|
||
## [Unreleased] | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Kodi Skin Snippets README | ||
|
||
## Features | ||
|
||
Some useful snippets for Kodi skin development. | ||
|
||
ktlwh - top, left, width, height tags | ||
|
||
ktlbr - top, left, bottom, right tags | ||
|
||
kcontl - Control with top, left | ||
|
||
kcontlwh - Control with top, left, width, height | ||
|
||
kcontlbr - Control with top, left, bottom, right | ||
|
||
kvar - Variable definition | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "kodi-skin-snippets", | ||
"displayName": "Kodi Skin Snippets", | ||
"description": "Useful snippets for Kodi skin development", | ||
"version": "0.0.1", | ||
"publisher": "roidy", | ||
"engines": { | ||
"vscode": "^1.59.0" | ||
}, | ||
"categories": [ | ||
"Snippets" | ||
], | ||
"contributes": { | ||
"snippets": [ | ||
{ | ||
"language": "xml", | ||
"path": "./snippets/snippets.code-snippets" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"Top, Left, Width, Height": { | ||
"prefix": [ | ||
"ktlwh" | ||
], | ||
"body": [ | ||
"\t<top>$1</top>", | ||
"\t<left>$2</left>", | ||
"\t<width>$3</width>", | ||
"\t<height>$4</height>" | ||
], | ||
"description": "Top, Left, Width, Height" | ||
}, | ||
"Top, Left, Bottom, Right": { | ||
"prefix": [ | ||
"ktlbr" | ||
], | ||
"body": [ | ||
"\t<top>$1</top>", | ||
"\t<left>$2</left>", | ||
"\t<bottom>$3</bottom>", | ||
"\t<right>$4</right>" | ||
], | ||
"description": "Top, Left, Bottom, Right" | ||
}, | ||
"Kodi Control T,L": { | ||
"prefix": [ | ||
"kcontl" | ||
], | ||
"body": [ | ||
"<control type=\"$1\">", | ||
"\t<top>$2</top>", | ||
"\t<left>$3</left>", | ||
"\t$0", | ||
"</control>", | ||
], | ||
"description": "Kodi Control T,L" | ||
}, | ||
"Kodi Control T,L,W,H": { | ||
"prefix": [ | ||
"kcontlwh" | ||
], | ||
"body": [ | ||
"<control type=\"$1\">", | ||
"\t<top>$2</top>", | ||
"\t<left>$3</left>", | ||
"\t<width>$4</width>", | ||
"\t<height>$5</height>", | ||
"\t$0", | ||
"</control>", | ||
], | ||
"description": "Kodi Control T,L,W,H" | ||
}, | ||
"Kodi Control T,L,B,R": { | ||
"prefix": [ | ||
"kcontlbr" | ||
], | ||
"body": [ | ||
"<control type=\"$1\">", | ||
"\t<top>$2</top>", | ||
"\t<left>$3</left>", | ||
"\t<bottom>$4</bottom>", | ||
"\t<right>$5</right>", | ||
"\t$0", | ||
"</control>", | ||
], | ||
"description": "Kodi Control T,L,B,R" | ||
}, | ||
"Kodi Variable": { | ||
"prefix": [ | ||
"kvar" | ||
], | ||
"body": [ | ||
"<variable name=\"$1\">", | ||
"\t<value condition=\"$2\">$3</value>", | ||
"\t<value>$4</value", | ||
"</variable>", | ||
], | ||
"description": "Kodi Variable" | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Welcome to your VS Code Extension | ||
|
||
## What's in the folder | ||
|
||
* This folder contains all of the files necessary for your extension. | ||
* `package.json` - this is the manifest file that defines the location of the snippet file and specifies the language of the snippets. | ||
* `snippets/snippets.json` - the file containing all snippets. | ||
|
||
## Get up and running straight away | ||
|
||
* Press `F5` to open a new window with your extension loaded. | ||
* Create a new file with a file name suffix matching your language. | ||
* Verify that your snippets are proposed on intellisense. | ||
|
||
## Make changes | ||
|
||
* You can relaunch the extension from the debug toolbar after making changes to the files listed above. | ||
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes. | ||
|
||
## Install your extension | ||
|
||
* To start using your extension with Visual Studio Code copy it into the `<user home>/.vscode/extensions` folder and restart Code. | ||
* To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension. |