Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

Icons made by Maxim Basinski from www.flaticon.com is licensed by CC 3.0 BY