Created
November 20, 2018 20:35
-
-
Save Rhernandez513/fb89090adef4bd5d547825e2e112036a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Show hidden characters
| { | |
| // At time of writing, for use with Visual Studio Code Version 1.29.1 and above | |
| // | |
| // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
| // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
| // is left empty or omitted, the snippet gets applied to all languages. 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": { | |
| // "scope": "javascript,typescript", | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", | |
| // "$2" | |
| // ], | |
| // "description": "Log output to console" | |
| // } | |
| "Basic Java App": { | |
| "scope": "java", | |
| "prefix": "javaapp", | |
| "body": [ | |
| "public class Solution {\n\tpublic static void main(String[] args) {\n\t\t$1\n\t}\n}\n\n// EOF\n" | |
| ], | |
| "description": "Scaffold a Basic Java App" | |
| }, | |
| "Basic JUnit Test": { | |
| "scope": "java", | |
| "prefix": "javatest", | |
| "body": [ | |
| "import org.junit.Test;\nimport static org.junit.Assert.*;\n\npublic class BasicUnitTest {\n\n\t@BeforeClass\n\tpublic static void startUp() {\n\t\tfail();\n\t}\n\n\t@AfterClass\n\tpublic static void shutDown() {\n\t\tfail();\n\t}\n\n\t@Before\n\tpublic void setup() {\n\tfail();\n\t}\n\n\t@After\n\tpublic void tearDown() {\n\t\tfail();\t\n\t}\n\n\t@Test\n\tpublic void testXxx() {\n\t\tfail();\n\t}\n}\n\n// EOF", | |
| "$2" | |
| ], | |
| "description": "Scaffold a Basic JUnit Test" | |
| }, | |
| "Basic Go App": { | |
| "scope": "go", | |
| "prefix": "goapp", | |
| "body": [ | |
| "package main\n\nfunc main() {\n$1\n}\n\n$2// EOF\n" | |
| ], | |
| "description": "Scaffold a Basic Go App" | |
| }, | |
| "Basic Go Test": { | |
| "scope": "go", | |
| "prefix": "gotest", | |
| "body": [ | |
| "package main\n\nimport \"testing\"\n\nfunc TestXxx(t *testing.T) {\n\t$1t.Fail()\n}\n\nfunc TestPreConditions_When_StateUnderTest_Then_ExpectedBehavior(t *testing.T) {\n\t$2t.Fail()\n}\n\nfunc BenchmarkXxx(b *testing.B) {\n\t$3b.Fail()\n}\n\n// EOF\n" | |
| ], | |
| "description": "Scaffold a Basic Go Test" | |
| } | |
| } | |
| // EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment