Skip to content

Instantly share code, notes, and snippets.

@chopfitzroy
Last active August 22, 2022 20:34
Show Gist options
  • Save chopfitzroy/338df3e01296738c13ba28d41f896213 to your computer and use it in GitHub Desktop.
Save chopfitzroy/338df3e01296738c13ba28d41f896213 to your computer and use it in GitHub Desktop.
VScode settings
android:connect() {
if [ -n "$1" ]
then
adb -s $1 reverse tcp:8081 tcp:8081
else
echo "Please provide a device ID."
fi
}
[
{
"key": "cmd+j cmd+t",
"command": "workbench.view.extension.todo-tree-container"
},
{
"key": "cmd+j cmd+c",
"command": "coldcode.start"
},
{
"key": "cmd+j cmd+f",
"command": "revealInExplorer"
},
{
"key": "cmd+j cmd+p",
"command": "workbench.action.togglePanel"
},
{
"key": "cmd+j",
"command": "-workbench.action.togglePanel"
}
]
{
// Window
"editor.wordWrap": "bounded",
"window.titleBarStyle": "custom",
"workbench.colorTheme": "GitHub Dark Dimmed",
"workbench.tree.indent": 32,
"editor.mouseWheelZoom": false,
"editor.minimap.enabled": false,
"explorer.confirmDelete": false,
"workbench.editor.showTabs": false,
"workbench.statusBar.visible": false,
"workbench.activityBar.visible": false,
"security.workspace.trust.untrustedFiles": "open",
"workbench.settings.openDefaultKeybindings": true,
// Git
"git.mergeEditor": false,
"git.ignoreMissingGitWarning": true,
// Extension notifications
"extensions.ignoreRecommendations": true,
// Themes
"workbench.iconTheme": null,
"workbench.sideBar.location": "right",
"workbench.preferredDarkColorTheme": "GitHub Dark Dimmed",
"workbench.preferredLightColorTheme": "GitHub Light",
// File explorer
"explorer.autoReveal": false,
"explorer.sortOrder": "modified",
// Terminal
"terminal.explorerKind": "external",
"terminal.external.windowsExec": "wt.exe",
// Version control
// - Fix default version control shortcut
// - https://github.com/eamodio/vscode-gitlens/issues/423#issuecomment-398058876
"gitlens.keymap": "none",
// Suggestions
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": false
},
// Fonts
"editor.fontSize": 22,
"editor.lineHeight": 44,
"editor.fontLigatures": false,
"editor.fontFamily": "'MonoLisa', 'Source Code Pro', monospace",
// Code completion
"emmet.triggerExpansionOnTab": true,
"emmet.showExpandedAbbreviation": "never",
"editor.suggest.shareSuggestSelections": true,
// Helpers
"javascript.updateImportsOnFileMove.enabled": "never",
"typescript.updateImportsOnFileMove.enabled": "never",
// Hightlights
// - Fixes issues with highlighting in markdown code blocks
"indentRainbow.colorOnWhiteSpaceOnly": true,
// TODO's
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
"todo-tree.highlights.enabled": true,
"todo-tree.general.tags": [
"FIXME",
"TODO"
],
// When opening a new empty file default to Javascript syntax
"files.defaultLanguage": "jsonc",
// Always allow comments in JSON files
"files.associations": {
"*.json": "jsonc",
"*.env.*": "env"
},
// Default Prettier overrides
"prettier.singleQuote": true,
"prettier.tabWidth": 4,
// Formatting
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Force comments to not use custom font styles (italic etc...)
// - I don't like italics because it slants emojis in comments 🤔
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"settings": {
"fontStyle": ""
},
"scope": [
"comment",
"comment.line",
"comment.block",
"comment.block.documentation"
]
}
]
},
"diffEditor.ignoreTrimWhitespace": false,
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "TS Sandbox",
"args": ["https://codesandbox.io/s/vanilla-typescript-vanilla-ts"],
"presentation": {
"reveal": "silent"
},
"osx": {
"command": "open"
},
"linux": {
// https://superuser.com/a/1599972
"command": "sensible-browser"
},
"windows": {
"command": "start"
}
},
{
"type": "shell",
"label": "React Sandbox",
"args": ["https://codesandbox.io/s/new"],
"presentation": {
"reveal": "silent"
},
"osx": {
"command": "open"
},
"linux": {
// https://superuser.com/a/1599972
"command": "sensible-browser"
},
"windows": {
"command": "start"
}
},
{
"type": "shell",
"label": "Draft",
"args": ["https://draftin.com/documents/new"],
"presentation": {
"reveal": "silent"
},
"osx": {
"command": "open"
},
"linux": {
// https://superuser.com/a/1599972
"command": "sensible-browser"
},
"windows": {
"command": "start"
},
"problemMatcher": []
}
]
}
[
// Only default keybinding to be disabled
// - Opted with "ctrl+j" because it's right next to "ctrl+k"
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel"
},
{
"key": "ctrl+j ctrl+c",
"command": "codesandbox-projects.focus"
},
{
"key": "ctrl+j ctrl+p",
"command": "workbench.action.togglePanel"
},
{
"key": "ctrl+j ctrl+t",
"command": "workbench.view.extension.todo-tree-container"
},
{
"key": "ctrl+j ctrl+s",
"command": "coldcode.start"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment