Skip to content

Instantly share code, notes, and snippets.

@favio41
favio41 / .vscode_settings.json
Last active August 12, 2021 12:20
Settings for vscode
{
"editor.tabSize": 2,
"files.associations": {
".env": "properties"
},
"workbench.colorTheme": "Monokai",
"editor.rulers": [80,120],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#40404050"
},
@favio41
favio41 / .vscode_launch.json
Last active October 9, 2019 13:34
Debug jest test of current open file
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest Current file",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"${file}"
@favio41
favio41 / vscode.keybindings.json
Last active October 16, 2019 16:03
keyboard shortcuts for vscode (open keyboard shortcuts)
[
{
"key": "cmd+k cmd+e",
"command": "-keybindings.editor.defineWhenExpression",
"when": "inKeybindings && keybindingFocus"
},
{
"key": "cmd+k cmd+e",
"command": "eslint.executeAutofix"
},
{
"Print object to console":{
"prefix": "stringify",
"body": "console.log(\"stringify $0\", JSON.stringify($0, null, 2))"
},
"Safe print object to console":{
"prefix": "stringifysafe",
"body": "console.log('inspect $0',require('util').inspect($0))"
},
"saveToFile":{
document.addEventListener('keydown', (e) => { if(e.code === 'KeyN') { document.querySelector('.game-controls-item[data-action="pencil"]').dispatchEvent(new MouseEvent('mousedown', {view: window, bubbles: true, cancelable: true })); } } )