Skip to content

Instantly share code, notes, and snippets.

@cassiorsfreitas
Last active January 21, 2024 00:50
Show Gist options
  • Save cassiorsfreitas/ccee4be60afd19c403dd89a145f9d8e8 to your computer and use it in GitHub Desktop.
Save cassiorsfreitas/ccee4be60afd19c403dd89a145f9d8e8 to your computer and use it in GitHub Desktop.
vscode-settings
{
// ---------- VIM ---------- //
"vim.leader": "<Space>",
"vim.foldfix": true,
"vim.useSystemClipboard": true,
"vim.highlightedyank.enable": true,
"vim.highlightedyank.color": "#c203fc",
"vim.hlsearch": true,
"vim.easymotion": true,
"vim.incsearch": true,
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<D-c>": false,
"<S-^>": false
},
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["u"],
"commands": ["undo"]
},
{
"before": ["tab"],
"commands": ["editor.action.indentLines"]
},
{
"before": ["<S-tab>"],
"commands": ["editor.action.outdentLines"]
},
{
"before": ["<Leader>", "h"],
"commands": [
"workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
]
},
{
"before": ["<Leader>", "g"],
"commands": ["gitlens.diffLineWithWorking"]
},
{
"before": ["<Leader>", "b"],
"commands": ["gitlens.showQuickBranchHistory"]
},
{
"before": ["<Leader>", "d"],
"commands": ["editor.action.dirtydiff.next"]
},
{
"before": ["<Leader>", "D"],
"commands": ["git.revertSelectedRanges"]
},
{
"before": ["<Leader>", "s"],
"commands": ["workbench.view.search"]
},
{
"before": ["<Leader>", "e"],
"commands": ["workbench.view.explorer"]
},
{
"before": ["<Leader>", "p"],
"commands": ["workbench.action.showCommands"]
},
{
"before": ["<Leader>", "w"],
"commands": ["workbench.action.files.save"]
},
{
"before": ["<Leader>", "f"],
"commands": ["workbench.action.quickOpen"]
},
{
"before": ["<Leader>", "t"],
"commands": ["workbench.action.gotoSymbol"]
},
{
"before": ["<Leader>", "a"],
"commands": ["editor.action.quickFix"]
},
{
"before": ["<S-h>"],
"commands": [":bprevious"]
},
{
"before": ["<S-l>"],
"commands": [":bnext"]
},
{
"before": ["<Leader>", "v", "v"],
"commands": [":vsplit"]
},
{
"before": ["<Leader>", "v", "s"],
"commands": [":split"]
},
{
"before": ["<Leader>", "v", "l"],
"commands": ["workbench.action.moveEditorToNextGroup"]
},
{
"before": ["<Leader>", "v", "h"],
"commands": ["workbench.action.moveEditorToPreviousGroup"]
},
{
"before": ["<Leader>", "<esc>"],
"commands": [":nohl"]
},
{
"before": ["<Leader>", "l", "j"],
"commands": ["editor.action.marker.next"]
},
{
"before": ["<Leader>", "l", "k"],
"commands": ["editor.action.marker.prev"]
},
{
"before": ["<Leader>", "k"],
"commands": ["editor.action.showHover"]
},
{
"before": ["g", "r"],
"commands": ["editor.action.rename"]
},
{
"before": ["<Leader>", "c"],
"commands": ["editor.action.commentLine"],
"when": "editorTextFocus && !editorReadonly"
},
{
"before": ["<Leader>", "j", "f"],
"after": ["<Leader>", "<Leader>", "f"]
},
{
"before": ["<Leader>", "j", "w"],
"after": ["<Leader>", "<Leader>", "w"]
},
{
"before": ["<Leader>", "j", "b"],
"after": ["<Leader>", "<Leader>", "b"]
},
{
"before": ["<Leader>", "j", "e"],
"after": ["<Leader>", "<Leader>", "e"]
},
{
"before": ["<Leader>", "j", "j"],
"after": ["<Leader>", "<Leader>", "j"]
},
{
"before": ["<Leader>", "j", "k"],
"after": ["<Leader>", "<Leader>", "k"]
},
{
"before": ["<Leader>", "j", "s"],
"after": ["<Leader>", "<Leader>", "s"]
},
{
"before": ["g", "a"],
"commands": ["references-view.findReferences"]
},
{
"before": ["<Leader>", "q"],
"commands": ["workbench.action.quickOpenView"]
}
],
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["j", "j"],
"after": ["<esc>"]
}
],
"vim.visualModeKeyBindings": [
{
"before": ["<Leader>", "c"],
"commands": ["editor.action.commentLine"],
"when": "editorTextFocus && !editorReadonly"
},
{
"before": ["tab"],
"commands": ["editor.action.indentLines"]
},
{
"before": ["<S-tab>"],
"commands": ["editor.action.outdentLines"]
}
],
// ---------- BASE ---------- //
"editor.cursorSurroundingLines": 5,
"editor.lineNumbers": "relative",
"editor.renderLineHighlight": "all",
"editor.stickyScroll.enabled": true,
"editor.formatOnSave": true,
"workbench.colorCustomizations": {
"editor.lineHighlightBackground": "#ffffff13",
"editor.lineHighlightBorder": "#00000000",
"editorStickyScroll.background": "#1A1A1A",
"editorStickyScrollHover.background": "#272930"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"workbench.colorTheme": "Min Dark",
"workbench.statusBar.visible": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
// ---------- GENERAL ---------- //
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.lineHeight": 26,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [80, 120],
"extensions.ignoreRecommendations": true,
"typescript.tsserver.log": "off",
"files.associations": {
".env.*": "dotenv",
".prettierrc": "json",
"*.css": "css"
},
"symbols.files.associations": {
"*.module.ts": "nest",
"*.guard.ts": "typescript",
"*.spec.ts": "ts-test",
"*.e2e-spec.ts": "ts-test",
"vitest.config.e2e.ts": "vite",
".env.example": "gear"
},
"tailwindCSS.experimental.classRegex": [
["tv\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
],
"editor.parameterHints.enabled": false,
"cSpell.language": "en,pt",
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.suggestSelection": "first",
"explorer.confirmDelete": false,
"gitlens.codeLens.recentChange.enabled": false,
"terminal.integrated.showExitAlert": false,
"typescript.suggest.autoImports": true,
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1"
},
"workbench.editor.labelFormat": "short",
"editor.fontLigatures": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.syntaxProfiles": {
"javascript": "jsx"
},
"cSpell.enableFiletypes": [
"!asciidoc",
"!c",
"!cpp",
"!csharp",
"!go",
"!handlebars",
"!haskell",
"!jade",
"!java",
"!latex",
"!php",
"!pug",
"!python",
"!restructuredtext",
"!rust",
"!scala",
"!scss"
],
"editor.acceptSuggestionOnCommitCharacter": false,
"explorer.compactFolders": false,
"git.enableSmartCommit": true,
"editor.accessibilitySupport": "off",
"explorer.confirmDragAndDrop": false,
"eslint.validate": ["javascript", "javascriptreact", "graphql"],
"editor.semanticHighlighting.enabled": false,
"breadcrumbs.enabled": false,
"workbench.productIconTheme": "fluent-icons",
"editor.fontFamily": "JetBrains Mono",
"gitlens.codeLens.authors.enabled": false,
"editor.tabSize": 2,
"security.workspace.trust.untrustedFiles": "newWindow",
"workbench.iconTheme": "symbols",
"update.mode": "start",
"terminal.integrated.gpuAcceleration": "off",
"window.commandCenter": true,
"git.openRepositoryInParentFolders": "always",
"symbols.hidesExplorerArrows": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"workbench.editor.empty.hint": "hidden",
"update.showReleaseNotes": false,
"security.promptForLocalFileProtocolHandling": false,
"workbench.activityBar.location": "hidden",
"apc.activityBar": {
"position": "bottom",
"hideSettings": true,
"size": 48,
"itemMargin": 8,
"itemSize": 32
},
"editor.hideCursorInOverviewRuler": true,
"editor.minimap.enabled": false,
"window.titleBarStyle": "native",
"apc.electron": {
"titleBarStyle": "hiddenInset",
"trafficLightPosition": {
"x": 11,
"y": 10
},
"frame": false
},
"apc.header": {
"height": 36
},
"apc.listRow": {
"height": 24
},
"apc.font.family": "Inter",
"apc.stylesheet": {
".title-label > h2": "display: none",
".editor-actions": "display: none",
".nosidebar .inline-tabs-placeholder": "width: 75px",
".pane-header": "padding: 0 8px",
".pane-body": "padding: 8px",
".split-view-view:first-child .pane-header": "display: none !important;",
".monaco-list-row": "border-radius: 4px;",
".monaco-workbench .monaco-list:not(.element-focused):focus:before": "display: none;"
},
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.horizontal": "hidden",
"explorer.sortOrder": "foldersNestsFiles",
"cSpell.userWords": [
"bootcamp",
"chakra",
"checkin",
"checkins",
"clsx",
"Codegen",
"datadog",
"Datetime",
"dayjs",
"Dotenv",
"Elysia",
"esbuild",
"fastify",
"Fastify",
"feedbackwidget",
"ffprobe",
"Hasher",
"Hono",
"ilike",
"IUGU",
"jamjuree",
"jupiter",
"liveblocks",
"LIVEBLOCKS",
"Marguerita",
"middlewares",
"mixpanel",
"monaco",
"nestjs",
"omni",
"Omni",
"Onboarded",
"pallas",
"postgres",
"postgresql",
"prefetch",
"reactflow",
"roboto",
"rocketseat",
"rotion",
"rsxp",
"Sandpack",
"shiki",
"skylab",
"sqlite",
"supergraph",
"svgr",
"sympla",
"tailwindcss",
"textblock",
"tiptap",
"trpc",
"TRPC",
"tsup",
"unfollow",
"Unfollow",
"unform",
"Unform",
"unmark",
"upsert",
"Usuario",
"WEBPUSH"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment