Skip to content

Instantly share code, notes, and snippets.

{
/*
Just some basic elixir snippets for vsCode. This file should be named elixir.json
*/
"defmacro": {
"prefix": "defmac",
"body": [
"defmacro ${1:module_name} do",
"$0",
"end"
@meanyb
meanyb / keybindings.json
Created May 24, 2017 03:28
VsCode keybindings
[
{"key": "alt+a","command": "workbench.action.showCommands"},
{"key": "cmd+'","command": "workbench.action.showCommands"},
{
"key": "cmd+`",
"command": "workbench.action.terminal.focus",
"when": "editorTextFocus"
},
{
"key": "cmd+r",
@meanyb
meanyb / setting.json
Created May 24, 2017 03:25
VsCode Settings
// Place your settings in this file to overwrite the default settings
{
"vim.textwidth": 120,
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"files.autoSave": "onFocusChange",
"files.autoSaveDelay": 3000,
"editor.tabSize": 2,
var spawn = require('child_process').spawn,
createSpawn = function(command) {
var cmd = spawn(command, []);
try {
console.log('running command: ' + command);
cmd.stdout.on('data', function(data){
process.stdout.write(data);
});
cmd.stderr.on('data', function(data) {
// process.stdout.write('ERROR:' + data);