VSCode snippets: project.json

What handier snippet is there in the World of asp vNext than project.json:

 "Basic project.json file": {
 "prefix": "PJson",
 "body": [
 "{",
 "\t\"dependencies\": {",
 
 "\t},",
 "\t\"commands\": {",
 "\t\t\"run\": \"run\"",
 "\t},",
 "\t\"frameworks\": {",
 "\t\t\"dnx451\": {},", 
 "\t\t\"dnxcore50\": {",
 "\t\t\t\"dependencies\": {",
 "\t\t\t\t\"System.Console\": \"4.0.0-beta-23516\"",
 "\t\t\t}", 
 "\t\t}", 
 "\t}",
 "}"
 ], 
 "description": "Basic project.json file template"
 }

Code

ProjectJson01
Resulting code:
ProjectJson02

Trivial addition until/unless it can be done properly in VSCode:
CodeSnippetsinVsCode13

"Code docs": {
 "prefix": "codeDocs",
 "body": [
 "/// <summary>",
 "/// This class performs an important function.",
 "/// </summary>"
 ],
 "description": "Bit of a clunky way to create Docs"
 }


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s