Skip to content

Instantly share code, notes, and snippets.

@shawn-sandy
Last active April 27, 2024 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawn-sandy/412c4dc061dd140c857b7cd8083c1f38 to your computer and use it in GitHub Desktop.
Save shawn-sandy/412c4dc061dd140c857b7cd8083c1f38 to your computer and use it in GitHub Desktop.
vscode
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"standard"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"rules": {}
}
registry=https://registry.npmjs.org/
package-lock=true
yes=true
node_modules
coverage
build
{
"arrowParens": "avoid",
"bracketSpacing": false,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "always",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
{
"commands": {
"typedoc-comments": {
"description": "typedoc-comments",
"prompt": "Write typedoc comments for the selected code. The comments should be in the form of JSDoc comments. Do not output any of the selected code, just the comments.",
"context": {
"selection": true
},
"mode": "insert"
},
"doc-comments": {
"description": "doc-comments",
"prompt": "Generate documentation comments for the chosen code snippet. Ensure that the comments adhere to the doc-comments format and exclude any type inference. The output should solely consist of the comments, without including any of the selected code.",
"context": {
"selection": true
},
"mode": "insert"
},
"inline-docs": {
"description": "inline-docs",
"prompt": "Add an inline doc comment for each property or type. The comments should describe the purpose, if its optional or required when necessary and expected values, do not output <selected> tag",
"context": {
"selection": true
},
"mode": "replace"
},
"recent-changes": {
"description": "recent-changes",
"prompt": "Summarize the given git changes in 3-5 sentences and provide a list of the most recent commits. The list should include commit hash, subject line and author for each commit.",
"context": {
"command": "git log -10 --pretty=format:'%h - %an: %s' --stat",
"selection": false
}
},
"translate": {
"description": "translate",
"prompt": "You are a universal translator you wil translate selections to spanish, german and french using the most common dialect. Output language is a list separated by the language, place a colon between the language name and translation text so that the user can better understand",
"context": {
"selection": true
}
},
"conventional-commit": {
"description": "Conventional Commit",
"prompt": "Suggest a informative commit message by summarizing code changes from the shared command output. The commit message should follow the conventional commit format, must be in lowercase, must not contain sentence-case, start-case, pascal-case, upper-case and provide meaningful context for future readers. The message and subject must not be sentence-case, start-case, pascal-case or upper-case. Add a summary of the changes to the commit description",
"context": {
"selection": false,
"command": "git diff"
}
},
"commands": {
"description": "commands"
},
"conventional-commits": {
"description": "generate conventional commits",
"prompt": "Act as a lead UX Engineer. Your goal is to write an informative commit message by summarizing code changes from the shared command output. The commit message subject must be in lowercase, must not contain sentence-case, start-case, pascal-case, upper-case. Should follow the conventional commit format and provide meaningful context for future readers. Add a summary of the changes to the commit description and simple list of all changes. Keep the message below 150 characters.",
"context": {
"selection": false,
"command": "git diff"
}
},
"commit-summary": {
"description": "generate a summary of the changes for a commit message",
"prompt": "Act as a lead UX Engineer writing commit messages for your code changes. Write the commit subject following conventional commit rules ans standards, the subject must not be sentence-case, start-case, pascal-case, or contain any upper-case characters. Followed by a short instructional paragraph no that longer 800 characters that summarizes all the code changes found in the git diff for a conventional commit message. The summary should not exceed three paragraphs, be informative, developer friendly and should accurately describe all the latest code changes. The output should be place in a content box or frame to be copied o inserted in the code.",
"context": {
"selection": false,
"command": "git diff"
},
"mode": "ask"
},
"code-reviews": {
"prompt": "Review the code in selected file and identify issues such as bad practices, incorrect semantic markup, accessibility issues, security, type issues, lint issues, color contrast issues, un-optimized code ect. Write concise, developer friendly, and informational list of recommendations with code examples whenever possible on how to improve, fix or refactor the code. If no issues are found, state that the code looks good and give the developer positive feedback.",
"context": {
"currentDir": false,
"currentFile": true,
"selection": true
},
"description": "Get an AI assisted code of your selected file"
},
"lint-issues": {
"prompt": "Scan this file for any eslint:recommended react violations, provide an list of violations with line numbers and error codes. The output should be formatted as a list with each violation on a new line with and example of the code fix if possible.",
"context": {
"currentFile": true,
"selection": true
},
"description": "Scan for eslint violations"
}
}
}
{
"commands": {
"code-review": {
"prompt": "Review the code in selected file and identify issues such as bad practices, incorrect semantic markup, accessibility issues, security, type issues, lint issues, color contrast issues, un-optimized code ect. Write concise, developer friendly, and informational list of recommendations with code examples whenever possible on how to improve, fix or refactor the code. If no issues are found, state that the code looks good and give the developer positive feedback.",
"context": {
"codebase": false,
"selection": true
},
"description": "Get an AI assisted code review of you selected file"
},
"doc-comments": {
"description": "doc-comments",
"prompt": "Generate documentation comments for the chosen code snippet. Ensure that the comments adhere to the doc-comments format and exclude any type inference. The output should solely consist of the comments, without including any of the selected code.",
"context": {
"selection": true
},
"mode": "insert"
},
"typedoc-comments": {
"description": "typedoc-comments",
"prompt": "Write typedoc comments for the selected code. The comments should be in the form of JSDoc comments. Do not output any of the selected code, just the comments.",
"context": {
"selection": true
},
"mode": "insert"
},
"translate": {
"description": "translate",
"prompt": "You are a universal translator you wil translate selections to spanish, german and french using the most common dialect. Output language is a list separated by the language, place a colon between the language name and translation text so that the user can better understand",
"context": {
"selection": true
}
},
"inline-docs": {
"description": "inline-docs",
"prompt": "Add an inline doc comment for each property or type. The comments should describe the purpose, if its optional or required when necessary and expected values, do not output <selected> tag",
"context": {
"selection": true
},
"mode": "replace"
},
"commit-summary": {
"description": "generate a summary of the changes for a commit message",
"prompt": "Act as a lead UX Engineer writing commit messages for your code changes. Write the commit subject following conventional commit rules ans standards, the subject must not be sentence-case, start-case, pascal-case, or contain any upper-case characters. Followed by a short instructional paragraph no that longer 800 characters that summarizes all the code changes found in the git diff for a conventional commit message. The summary should not exceed three paragraphs, be informative, developer friendly and should accurately describe all the latest code changes. Add triple backticks to the start and end so it renders properly as a code block. Do not make assumptions or fabricate additional details, only summarize what is found in the git diff output.",
"context": {
"selection": false,
"command": "git diff"
},
"mode": "ask"
},
"conventional-commit": {
"description": "Conventional Commit",
"prompt": "Suggest a informative commit message by summarizing code changes from the shared command output. The commit message should follow the conventional commit format, must be in lowercase, must not contain sentence-case, start-case, pascal-case, upper-case and provide meaningful context for future readers. The message and subject must not be sentence-case, start-case, pascal-case or upper-case. Add a summary of the changes to the commit description place the output in ```",
"context": {
"selection": false,
"command": "git diff"
}
},
"placeholder": {
"description": "placeholder",
"prompt": "generate a paragraph of text that can be used as a placeholder. The output should be a paragraph of text that is not lorem ipsum and is user friendly, the topic should be based on the selected text or file content. Do not include any additional info in the output. If there is no content inform the user that there is no content to generate a placeholder from.",
"context": {
"selection": true,
"currentFile": true
},
"mode": "ask"
},
"placeholder-sentence": {
"description": "AI generated placeholder sentence",
"prompt": "generate a sentence of text that can be used as a placeholder. The output should be a paragraph of text that is not lorem ipsum and is user friendly, the topic should be based on the selected or file content. Do output any additional info",
"context": {
"selection": true,
"currentFile": true
},
"mode": "ask"
},
"placeholder-short": {
"description": "AI generated placeholder 30 words max",
"prompt": "generate a paragraph of text that can be used as a placeholder. The output should be a paragraph of text that is not lorem ipsum and is user friendly, the topic should be based on the selected or file content and no longer that 20 words.",
"context": {
"selection": true,
"currentFile": true
},
"mode": "ask"
},
"placeholder-story": {
"description": "placeholder",
"prompt": "generate a 4 paragraphs of text that can be used as a placeholder. The output should be a paragraph of text that is not lorem ipsum and is user friendly, the topic should be based on the selected text or file content. Do not include any additional info in the output. If there is no content inform the user that there is no content to generate a placeholder from. format for markdown",
"context": {
"selection": true,
"currentFile": true
},
"mode": "ask"
},
"placeholder-story-html": {
"description": "placeholder",
"prompt": "generate a 4 paragraphs of text that can be used as a placeholder. The output should be a paragraph of text that is not lorem ipsum and is user friendly, the topic should be based on the selected text or file content. Do not include any additional info in the output. If there is no content inform the user that there is no content to generate a placeholder from. format for HTML",
"context": {
"selection": true,
"currentFile": true
},
"mode": "ask"
},
"evaluate-code-library-updates": {
"description": "evaluate-code-library-updates",
"prompt": "Evaluate and report on the status of library updates in the current project, suggesting updates for security and feature enhancements.",
"mode": "insert"
},
"generate-readme": {
"description": "readme",
"prompt": "Generate a MDX readme for the selected file place the content in a content box or frame to be copied or inserted in the code. Add triple backticks to the start and end so it renders properly as a code block. Do not make assumptions or fabricate additional details. Focus on describing the purpose, usage and installation of the selected file based on its content and context.",
"context": {
"selection": true,
"currentFile": true
},
"mode": "ask"
},
"document-current-folder": {
"description": "Document the files the current folder using Markdown and insert into file",
"prompt": "Write a detailed README.md file to document the code in the same directory as my current selection. Summarize what the code in this directory is meant to accomplish. Explain the key files, functions, classes, and features. Use Markdown formatting for headings, code blocks, lists, etc. to make it organized and readable. Aim for a beginner-friendly explanation that gives a developer unfamiliar with the code a good starting point to understand it. Ensure to include: - Overview of directory purpose - Functionality explanations - Relevant diagrams or visuals if helpful. Write the README content clearly and concisely using complete sentences and paragraphs based on the shared context. Use proper spelling, grammar, and punctuation throughout. Add triple backticks to the start and end so it renders properly as a code block.. Do not make assumptions or fabricate additional details.",
"context": {
"currentDir": true,
"selection": false
},
"mode": "insert"
},
"pizels-to-rem": {
"description": "pixels-to-rem",
"prompt": "Convert the selection from pixels to rem unit. If the selection is not a css unit do not do anything.",
"mode": "edit"
}
}
}
{
"recommendations": [
"royaction.color-manager",
"shawnsandy.codestudio",
"vsls-contrib.codetour",
"naumovs.color-highlight",
"vivaxy.vscode-conventional-commits",
"dzhavat.css-flexbox-cheatsheet",
"mikestead.dotenv",
"vunguyentuan.vscode-css-variables"
]
}
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"git:add": "git add .",
"git:cz": "git cz",
"git:push": "git push",
"commit": "run-s git:add git:cz git:push"
{
"guides.enabled": false,
"terminal.integrated.rendererType": "dom",
"git.autofetch": true,
"task.slowProviderWarning": [
"npm"
],
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
// "terminal.integrated.shell.windows": "C:\\Tools\\PowerShell\\6\\pwsh.exe",
"terminal.external.windowsExec": "C:\\Tools\\Git\\git-bash.exe",
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"files.associations": {
"*.tag": "html",
"*.cshtml": "html",
"*.html": "html",
"*.mustache": "html",
"*.json.txt": "html",
"*.html.md": "html",
"*.njk": "html"
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/.vscode": true,
"**/__pycache__": true,
"**/.pytest_cache": true,
"**/node_modules": true,
"node_modules": true,
"venv": true,
"*.sublime-*": true,
"env*": true,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/env": true,
"**/venv": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/env/**": true,
"**/venv/**": true,
"env-*": true
},
"files.autoSave": "onWindowChange",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.cursorBlinking": "phase",
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
"breadcrumbs.enabled": true,
"editor.minimap.renderCharacters": false,
"editor.minimap.maxColumn": 200,
"editor.minimap.showSlider": "always",
"files.autoSave": "afterDelay",
"editor.tabSize": 2,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"html.mirrorCursorOnMatchingTag": true,
"editor.autoClosingBrackets": "always",
"editor.formatOnSave": true,
"[razor]": {
"editor.formatOnSave": false
},
"beautify.ignore": [
"cshtml",
"razor"
],
"prettier.endOfLine": "lf",
"prettier.disableLanguages": [
"razor",
"cshtml"
],
"html.format.wrapAttributes": "preserve",
"local-history.daysLimit": 12,
"extensions.ignoreRecommendations": false,
"html.format.indentInnerHtml": true,
"highlight-matching-tag.noDefaultEmptyElements": true,
"cSpell.enableFiletypes": [
"vue"
],
"cSpell.userWords": [
"miragejs",
"notyf",
"toastify"
],
"javascript.format.semicolons": "remove",
"typescript.format.semicolons": "remove",
"editor.wordWrap": "wordWrapColumn",
"window.zoomLevel": 0,
"[css]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"workbench.activityBar.visible": true,
"editor.formatOnPaste": true,
"editor.formatOnType": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"prettier.jsxSingleQuote": true,
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.run": "onSave",
"java.project.importHint": false,
"java.project.importOnFirstTimeStartup": "automatic",
"git.enableSmartCommit": true,
"workbench.editor.pinnedTabSizing": "compact",
"markdown.extension.tableFormatter.normalizeIndentation": true,
"editor.useTabStops": false,
"settingsSync.ignoredSettings": [],
"settingsSync.keybindingsPerPlatform": false,
"workbench.colorTheme": "Default Dark+",
"tabnine.experimentalAutoImports": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"[scss]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"gitlens.views.branches.branches.layout": "list",
"prettier.singleQuote": true,
"prettier.vueIndentScriptAndStyle": true,
"html.format.indentHandlebars": true,
"eslint.alwaysShowStatus": true,
"eslint.onIgnoredFiles": "warn",
"css.lint.compatibleVendorPrefixes": "warning",
"prettier.embeddedLanguageFormatting": "off",
"prettier.quoteProps": "consistent",
"prettier.semi": false,
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.quoteStyle": "single",
"codespaces.accountProvider": "Uninitialized",
"html.format.endWithNewline": true,
"html.format.wrapAttributesIndentSize": 2,
"gitlens.gitCommands.skipConfirmations": [
"fetch:command",
"stash-push:command",
"switch:command",
"branch-create:command"
],
"yaml.schemas": {
"file:///c%3A/Users/shawn/.vscode/extensions/atlassian.atlascode-2.8.5/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
},
"atlascode.jira.jqlList": [
{
"id": "1d8148f9-adc3-4a4c-96df-ff8c612e0eb0",
"enabled": true,
"name": "My managepixels Issues",
"query": "assignee = currentUser() AND resolution = Unresolved ORDER BY lastViewed DESC",
"siteId": "1591acdf-a34d-4b9c-bd65-24a50a1c766c",
"monitor": true
}
],
"xd.globalEditor": true,
"liveServer.settings.donotShowInfoMsg": true,
"diffEditor.renderSideBySide": false,
"gitlens.views.remotes.branches.layout": "list",
"codestream.email": "creative@shawnsandy.design",
"settingsSync.ignoredExtensions": [
],
"todo-tree.tree.showScanModeButton": false,
"todo-tree.filtering.ignoreGitSubmodules": true,
"todo-tree.filtering.excludeGlobs": [
"**/node_modules",
"**/dist",
"**/www"
]
// "terminal.integrated.shell.windows": "C:\\Tools\\PowerShell\\6\\pwsh.exe"
// C:\Tools\Git`
}
{
"extends": "stylelint-config-standard"
}

VSCode Terminal CMD tips

Open Windows Explorer from VSCODE terminal

Enter start . to the current directory/path in Windows Explorer from the terminal

VS code

  • settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment