Skip to content

Commit

Permalink
Version 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
roidy committed Aug 9, 2021
0 parents commit be3b087
Show file tree
Hide file tree
Showing 10 changed files with 178 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Set default behavior to automatically normalize line endings.
* text=auto

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
*.vsix
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 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}"
]
}
]
}
4 changes: 4 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode/**
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
9 changes: 9 additions & 0 deletions CHANGELOG.md
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
18 changes: 18 additions & 0 deletions README.md
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

21 changes: 21 additions & 0 deletions package.json
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"
}
]
}
}
81 changes: 81 additions & 0 deletions snippets/snippets.code-snippets
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"
},
}
23 changes: 23 additions & 0 deletions vsc-extension-quickstart.md
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.

0 comments on commit be3b087

Please sign in to comment.