Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rebornix/vscode-project-snippet
Workspace/Project Level Snippet
https://github.com/rebornix/vscode-project-snippet
Last synced: 5 days ago
JSON representation
Workspace/Project Level Snippet
- Host: GitHub
- URL: https://github.com/rebornix/vscode-project-snippet
- Owner: rebornix
- Created: 2016-11-04T00:10:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-12T15:22:02.000Z (over 5 years ago)
- Last Synced: 2024-10-26T04:05:54.764Z (19 days ago)
- Language: TypeScript
- Size: 102 KB
- Stars: 43
- Watchers: 3
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :rotating_light: Deprecated :rotating_light: - This feature is now part of VSCode
[This feature](https://github.com/Microsoft/vscode/issues/8102) now ships with visual studio code!Steps to using built-in workspace snippets:
- Create a `{namehere}.code-snippets` file in `.vscode` folder
- The file must be within `.vscode` folder (not in sub-folders)
- Your snippets can now be checked in and shared with your team
- Note: when using the snippet you will see `(Workspace Snippet)` in the intellisense autocomplete dropdown--------
# project snippets [![Build Status](https://travis-ci.org/rebornix/vscode-project-snippet.svg?branch=master)](https://travis-ci.org/rebornix/vscode-project-snippet) [![Build status](https://ci.appveyor.com/api/projects/status/0ntf4072cfp2naig/branch/master?svg=true)](https://ci.appveyor.com/project/rebornix/vscode-project-snippet/branch/master)
Provide workspace/project level code snippets.
![screenshot](images/screenshot.png)
## Usage
Put snippets at `.vscode/snippets/.json`
For example, `.vscode/snippets/javascript.json`
```json
{
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log($1);"
],
"description": "Log output to console"
},
"Print to console error": {
"prefix": "error",
"body": [
"console.error($1);"
],
"description": "Log error output to console"
},
}
```See this blog post for more info.
## Contributors
* rebornix
* [thongdong7](https://github.com/thongdong7)## Credits