Fork me on GitHub
#calva
<
2019-01-09
>
Jacob Haag16:01:18

Does anyone here have a good workflow for creating code snippets in vs code? In order to do so I have to convert

(re-frame/reg-sub
 ::sub-name
 (fn [db _]
   (get-in db [:path :value])))
Too -->
"Re-frame-subscriptions": {
		"prefix": "sub",
		"body": [
			"(re-frame/reg-sub",
			"\t ::sub-name",
			"\t (fn [db _]",
			"\t (get-in db [:path :value])))"
		],
		"description": "Log output to console"
	}
Which seems pretty inefficient

mattly17:01:25

right? You'd think they'd have a "create snippet from clipboard" command

pez18:01:16

Sounds like a job for an extension, I thought. Then found that someone started this a week ago: https://github.com/VincentKos/vscode-snippet-creator

🙂 5
pez18:01:31

(There are a few other extensions for creating snippets as well.)