国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

VScode 工作區(qū)配置 和 用戶(hù)配置

這篇具有很好參考價(jià)值的文章主要介紹了VScode 工作區(qū)配置 和 用戶(hù)配置。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

一、工作區(qū)配置

通常不同的項(xiàng)目都有不同的配置,我一般都是使用eslint和prettier一起用,所以經(jīng)常會(huì)有這幾個(gè)文件:

source.fixall.eslint

這里簡(jiǎn)單介紹一下這幾個(gè)文件的作用吧。

1.vscode文件夾下

一般有兩個(gè)文件,extensions.json和settings.json。

extensions.json

文件是用來(lái)配置推薦安裝的 VS Code 插件的文件。在這個(gè)文件中,你可以列出你項(xiàng)目中推薦使用的一些插件,當(dāng)你打開(kāi)項(xiàng)目時(shí),VS Code 會(huì)自動(dòng)提示你是否安裝這些插件。

比如:

{

? "recommendations": ["johnsoncodehk.volar", "esbenp.prettier-vscode","dbaeumer.vscode-eslint"]

}

這三個(gè)插件分別代表:

  1. johnsoncodehk.volar: 與 Vue.js 相關(guān)的插件,提供了更好的 Vue.js 開(kāi)發(fā)體驗(yàn)。

  2. esbenp.prettier-vscode: Prettier 的 VS Code 插件,用于格式化代碼。

  3. dbaeumer.vscode-eslint: ESLint 的 VS Code 插件,用于提供 ESLint 集成支持。

settings.json

這是VS Code 中的設(shè)置文件一般用來(lái)設(shè)置項(xiàng)目的開(kāi)發(fā)配置,比如常見(jiàn)的都是這些配置:

{
  "window.title": "Admin", //設(shè)置 VS Code 窗口標(biāo)題

  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.detectIndentation": false,
  "editor.formatOnPaste": false,
  "editor.formatOnSave": true,
  "editor.wordWrap": "on",  //啟用文本換行
  "eslint.alwaysShowStatus": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "vue",
    "html",
    {
      "language": "vue",
      "autoFix": true
    }
  ],

  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },

  "[jsonc]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.tabSize": 2,
  "diffEditor.ignoreTrimWhitespace": false,
  "files.associations": {
    "*.vue": "vue"
  },
  
  "editor.suggestSelection": "first",
  
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "prettier.tabWidth": 2,//指定 Prettier 的縮進(jìn)寬度為 2 個(gè)空格
  "prettier.semi": false,
  "prettier.jsxSingleQuote": true,
  "prettier.singleQuote": true,
  "prettier.eslintIntegration": true, // 讓prettier遵循eslint格式美化

  // "[json]": {
  //   "editor.defaultFormatter": "esbenp.prettier-vscode"
  // },
  "files.exclude": {
    // ".dockerignore": true,
    // ".editorconfig": true,
    // ".eslint*": true,
    // ".travis*": true,
    // "babel*": true,
    // "package-lock*": true,
    // "postcss*": true,
    // "nginx*": true,
    // ".git*": true,
    // ".pretti*": true,
    // ".vscode": true,
    // ".stylelintrc.json": true,
    // "*.md": true,
    // "*.toml": true,
    // "*firebase*": true,
    // "appveyor.yml": true,
    // "dist": true,
    // "Dock*": true,
    // "jest*": true,
    // "node_modules": true,
    // "README*": true
  },
  "javascript.format.enable": true, // 不啟動(dòng)JavaScript格式化
  "files.autoSave": "onFocusChange",
  
  "eslint.options": {
    // "plugins": ["html"]
  },
  // "workbench.statusBar.feedback.visible": false,
  "vetur.format.options.tabSize": 2, //Vue 文件中的縮進(jìn)大小
  "vetur.format.defaultFormatter.css": "prettier",
  "merge-conflict.autoNavigateNextConflict.enabled": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"  //保存時(shí)執(zhí)行 ESLint 修復(fù)
  },
  "[scss]": {
    "editor.defaultFormatter": "HookyQR.beautify"
  },
  "prettier.requireConfig": true,
  "editor.guides.indentation": false,
  "editor.guides.highlightActiveIndentation": false,
  "workbench.editor.empty.hint": "hidden" //隱藏空白編輯器的提示,可以根據(jù)個(gè)人偏好進(jìn)行配置
}

一般都是需要什么配置去找什么配置,當(dāng)前只有這兩個(gè)還是不太行,一般還需要其他的文件來(lái)輔助。

2.根目錄下

eslintrc.js? ?和 prettierrc ,看名字就知道都是干啥的,一般會(huì)有這樣的配置:

.eslintrc.js?

module.exports = {
  root: true,
  env: {
    browser: true,
    commonjs: true,
    es6: true,
    node: true
  },

  globals: {
    defineEmits: true,
    document: true,
    localStorage: true,
    GLOBAL_VAR: true,
    window: true,
    defineProps: true,
    defineExpose: true,
    $ref: true
  },
  plugins: ['@typescript-eslint', 'prettier', 'import'],
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/recommended',
    'plugin:vue/vue3-recommended',
    'prettier',
    './.eslintrc-auto-import.json'
  ],
  parserOptions: {
    parser: '@typescript-eslint/parser',
    sourceType: 'module',
    ecmaFeatures: {
      jsx: true,
      tsx: true
    }
  },
  rules: {
    //close lf error
    'import/no-unresolved': [0],
    'vue/multi-word-component-names': 'off',
    'vue/no-deprecated-router-link-tag-prop': 'off',
    'import/extensions': 'off',
    'import/no-absolute-path': 'off',
    'no-async-promise-executor': 'off',
    'import/no-extraneous-dependencies': 'off',
    'vue/no-multiple-template-root': 'off',
    'vue/html-self-closing': 'off',
    'no-console': 'off',
    'no-plusplus': 'off',
    'no-useless-escape': 'off',
    'no-bitwise': 'off',
    '@typescript-eslint/no-explicit-any': ['off'],
    '@typescript-eslint/explicit-module-boundary-types': ['off'],
    '@typescript-eslint/ban-ts-comment': ['off'],
    'vue/no-setup-props-destructure': ['off'],
    '@typescript-eslint/no-empty-function': ['off'],
    'vue/script-setup-uses-vars': ['off'],
    //can config  to 2 if need more then required
    '@typescript-eslint/no-unused-vars': [0],
    'no-param-reassign': ['off']
  }
}

解釋如下:?

  • root: true: 表示 ESLint 應(yīng)該停止在父級(jí)目錄中查找其他配置文件。

  • env: 定義了代碼運(yùn)行的環(huán)境。這里包括瀏覽器、CommonJS、ES6 和 Node.js。

  • globals: 定義了全局變量,這樣 ESLint 不會(huì)發(fā)出未定義的錯(cuò)誤。這里列出了一些常見(jiàn)的全局變量,比如 document、localStorage、window 等。

  • plugins: 插件列表,這里包括 @typescript-eslint、prettierimport。這些插件提供了額外的規(guī)則和功能。

  • extends: 繼承了一系列預(yù)設(shè)的規(guī)則集,包括了一些推薦的規(guī)則,TypeScript 相關(guān)的規(guī)則,Vue3 推薦的規(guī)則,以及 Prettier 的規(guī)則。

  • parserOptions: 定義了解析器選項(xiàng),這里使用了 TypeScript 解析器 @typescript-eslint/parser,并設(shè)置了一些選項(xiàng),如支持 JSX 和 TSX。

  • rules: 定義了具體的規(guī)則配置。這里關(guān)閉了一些規(guī)則,例如關(guān)閉了一些 import 相關(guān)的規(guī)則、關(guān)閉了一些 TypeScript 相關(guān)的規(guī)則、關(guān)閉了一些 Vue 相關(guān)的規(guī)則等。每個(gè)規(guī)則的具體含義可以根據(jù)規(guī)則的名稱(chēng)查找 ESLint 文檔進(jìn)行了解

.prettierrc

{
    "useTabs": false,
    "tabWidth": 2,
    "printWidth": 120,
    "singleQuote": true,
    "trailingComma": "none",
    "bracketSpacing": true,
    "semi": false,
    "htmlWhitespaceSensitivity": "ignore"
}
  • useTabs: 表示是否使用制表符(Tab)進(jìn)行縮進(jìn)。如果設(shè)置為 false,則使用空格進(jìn)行縮進(jìn)。

  • tabWidth: 表示縮進(jìn)的空格數(shù)目。如果使用空格進(jìn)行縮進(jìn),定義每級(jí)縮進(jìn)的空格數(shù)。

  • printWidth: 表示代碼行的最大寬度,超過(guò)這個(gè)寬度則進(jìn)行換行。

  • singleQuote: 表示是否使用單引號(hào)。如果設(shè)置為 true,則使用單引號(hào);如果設(shè)置為 false,則使用雙引號(hào)。

  • trailingComma: 表示對(duì)象、數(shù)組等最后一個(gè)元素后是否加逗號(hào)??蛇x值為 "none""es5"、"all"

  • bracketSpacing: 表示花括號(hào)是否有空格。如果設(shè)置為 true,則花括號(hào)內(nèi)部有空格。

  • semi: 表示是否使用分號(hào)作為語(yǔ)句的結(jié)束符。如果設(shè)置為 false,則不使用分號(hào)。

  • htmlWhitespaceSensitivity: 表示 HTML 文件中空格的敏感性。可選值為 "css"(保留 CSS 規(guī)則的空格)和 "ignore"(忽略空格)。

這些配置項(xiàng)用于規(guī)范代碼風(fēng)格,確保團(tuán)隊(duì)成員之間的代碼風(fēng)格一致。 Prettier 會(huì)根據(jù)這些配置對(duì)代碼進(jìn)行格式化。

除此之外,還可以引入這些配置:

.eslintrc-auto-import.json??

定義全局變量,以避免 ESLint 報(bào)告這些變量未定義的錯(cuò)誤

?比如:

{
  "globals": {
    "axiosReq": true,
    "computed": true,
    "createApp": true,
    "createLogger": true,
    "createNamespacedHelpers": true,
    "createStore": true,
    "customRef": true,
    "defineAsyncComponent": true,
    "defineComponent": true,
    "effectScope": true,
    "EffectScope": true,
    "getCurrentInstance": true,
    "getCurrentScope": true,
    "h": true,
    "inject": true,
    "isReadonly": true,
    "isRef": true,
    "mapActions": true,
    "mapGetters": true,
    "mapMutations": true,
    "mapState": true,
    "markRaw": true,
    "nextTick": true,
    "onActivated": true,
    "onBeforeMount": true,
    "onBeforeUnmount": true,
    "onBeforeUpdate": true,
    "onDeactivated": true,
    "onErrorCaptured": true,
    "onMounted": true,
    "onRenderTracked": true,
    "onRenderTriggered": true,
    "onScopeDispose": true,
    "onServerPrefetch": true,
    "onUnmounted": true,
    "onUpdated": true,
    "provide": true,
    "reactive": true,
    "readonly": true,
    "ref": true,
    "resolveComponent": true,
    "shallowReactive": true,
    "shallowReadonly": true,
    "shallowRef": true,
    "toRaw": true,
    "toRef": true,
    "toRefs": true,
    "triggerRef": true,
    "unref": true,
    "useAttrs": true,
    "useCommon": true,
    "useCssModule": true,
    "useCssVars": true,
    "useElement": true,
    "useRoute": true,
    "useRouter": true,
    "useSlots": true,
    "useStore": true,
    "useVueRouter": true,
    "watch": true,
    "watchEffect": true
  }
}

這些變量看起來(lái)是與 Vue 3 和 Vue 相關(guān)的一些功能和 API 相關(guān)的,包括 refreactive、computed、providewatch、watchEffect 等。

通過(guò)將這些變量添加到 globals 字段中,告訴 ESLint 這些變量是全局可用的,不需要在代碼中顯式聲明或?qū)搿?/p>

這種做法有助于提高開(kāi)發(fā)效率,同時(shí)確保代碼中使用的全局變量能夠被正確地識(shí)別和檢查,而不會(huì)導(dǎo)致未定義的錯(cuò)誤。

?

?.eslintignore

用于配置 ESLint 忽略檢查的文件和目錄。?

public
node_modules
.history
.husky
src/static
src/components/*
src/uni_modules/*
src/utils/*
dist
axios
*.d.ts



public: 忽略 public 目錄下的文件和子目錄。
node_modules: 忽略 node_modules 目錄下的文件和子目錄。
.history: 忽略 .history 目錄下的文件和子目錄。
.husky: 忽略 .husky 目錄下的文件和子目錄。
src/static: 忽略 src/static 目錄下的文件和子目錄。
src/components/*: 忽略 src/components 目錄下的所有文件。
src/uni_modules/*: 忽略 src/uni_modules 目錄下的所有文件。
src/utils/*: 忽略 src/utils 目錄下的所有文件。
dist: 忽略 dist 目錄下的文件和子目錄。
axios: 忽略 axios 文件。
*.d.ts: 忽略以 .d.ts 結(jié)尾的文件。
這些規(guī)則用于告訴 ESLint 在檢查代碼時(shí)忽略這些文件和目錄,通常用于排除一些不需要進(jìn)行代碼檢查的文件或者由工具生成的文件。

?.editorconfig

用于配置代碼編輯器的行為,以確保在不同編輯器中保持一致的代碼風(fēng)格

# https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
  • root = true: 表示這是最頂層的 .editorconfig 文件,編輯器在查找 .editorconfig 文件時(shí)將停止搜索。

  • [*]: 適用于所有文件的默認(rèn)配置。

    • charset = utf-8: 文件編碼使用 UTF-8。
    • indent_style = space: 縮進(jìn)使用空格。
    • indent_size = 2: 縮進(jìn)大小為 2 個(gè)空格。
    • end_of_line = lf: 換行符使用 LF (Unix 風(fēng)格)。
    • insert_final_newline = true: 在文件的末尾插入一個(gè)空白行。
    • trim_trailing_whitespace = true: 去除行尾的空格。
  • [*.md]: 適用于 Markdown 文件的配置。

    • insert_final_newline = false: 不在 Markdown 文件的末尾插入空白行。
    • trim_trailing_whitespace = false: 不去除 Markdown 文件行尾的空格。

這些設(shè)置旨在提供一致的編輯器配置,以避免因編輯器不同而引起的格式化問(wèn)題。例如,它確保所有文件都使用相同的字符集、縮進(jìn)風(fēng)格等。

?

上面這些是不用的工作區(qū),或者說(shuō)是不同的項(xiàng)目之間的配置,下面是自己的vscode的一些配置,當(dāng)然如果有上面的配置,用戶(hù)配置只是補(bǔ)充

二、用戶(hù)配置

點(diǎn)擊設(shè)置,隨便搜點(diǎn)啥,點(diǎn)擊這個(gè)鏈接就到了用戶(hù)設(shè)置里,當(dāng)然也可以根據(jù)此來(lái)進(jìn)行工作區(qū)的設(shè)置,這里有中文,比較方便。

source.fixall.eslint

{
  // 添加 vue 支持
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "vue",
      "autoFix": false
    }
  ],
  // //火花組件的配置
  // "powermode.enabled": true, //啟動(dòng)
  // "powermode.presets": "flames", // 火花效果
  // "powermode.enableShake": true, // 去除代碼抖動(dòng)
  // "powermode.shake.enabled": false,
  // "powermode.combo.counterEnabled": "hide",
  // "powermode.combo.timerEnabled": "hide",
  // #這個(gè)按用戶(hù)自身習(xí)慣選擇
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  // #讓vue中的js按編輯器自帶的ts格式進(jìn)行格式化
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
      // #vue組件中html代碼格式化樣式
    }
  },
  // // 格式化stylus, 需安裝Manta's Stylus Supremacy插件
  // "stylusSupremacy.insertColons": false, // 是否插入冒號(hào)
  // "stylusSupremacy.insertSemicolons": false, // 是否插入分好
  // "stylusSupremacy.insertBraces": false, // 是否插入大括號(hào)
  // "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否換行
  // "stylusSupremacy.insertNewLineAroundBlocks": false,

  //代碼格式化
  // vscode默認(rèn)啟用了根據(jù)文件類(lèi)型自動(dòng)設(shè)置tabsize的選項(xiàng)
  "editor.detectIndentation": false,
  // 重新設(shè)定tabsize
  "editor.tabSize": 2,
  // #每次保存的時(shí)候自動(dòng)格式化
  "editor.formatOnSave": true,
  "files.autoSave": "onFocusChange",
  "files.autoSaveDelay": 3000,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "never"
  },
  "editor.semanticTokenColorCustomizations": {
    "[Default Dark+]": {}
  },
  //  #使用帶引號(hào)替代雙引號(hào)
  // "prettier.singleQuote": false,
  //  #讓函數(shù)(名)和后面的括號(hào)之間加個(gè)空格
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,

  // "tabnine.experimentalAutoImports": true,
  // "emmet.preferences": {},
  // "prettier.jsxSingleQuote": false,
  // "html.completion.attributeDefaultValue": "singlequotes",
  // "[vue]": {
  //   "editor.defaultFormatter": "esbenp.prettier-vscode"
  // },
  //關(guān)閉vetur標(biāo)簽閉合檢查(用于解決iview標(biāo)簽報(bào)錯(cuò))
  "explorer.confirmDelete": true,
  //auto Rename tag
  "editor.linkedEditing": true,
  //auto close tags
  "html.autoClosingTags": true,
  "javascript.autoClosingTags": true,
  "typescript.autoClosingTags": true,
  //auto import 為JavaScript//TypeScript使用auto-import suggestions,.在文件移動(dòng)時(shí)更新導(dǎo)入,并在top使用絕對(duì)路徑組織導(dǎo)入。
  "javascript.suggest.autoImports": true,
  "typescript.suggest.autoImports": true,

  "javascript.updateImportsOnFileMove.enabled": "always",
  "typescript.updateImportsOnFileMove.enabled": "always",
  //括號(hào)顏色和水平
  "editor.bracketPairColorization.independentColorPoolPerBracketType": true,
  "editor.bracketPairColorization.enabled": true,
  "editor.guides.bracketPairs": true,
  "cSpell.userWords": ["pview"],
  "editor.accessibilitySupport": "off",
  "merge-conflict.autoNavigateNextConflict.enabled": true,
  "volar.autoCompleteRefs": true,
  "cSpell.languageSettings": [],
  "prettier.semi": false,
  "tabnine.experimentalAutoImports": true,
  "workbench.editorAssociations": {
    "*.ttf": "default"
  },
  "prettier.singleQuote": true,
  "prettier.jsxSingleQuote": true,
  "workbench.colorTheme": "Monokai Dimmed",
  "C_Cpp.commentContinuationPatterns": ["/**"],
  "git.suggestSmartCommit": false,
  "git.confirmSync": false,
  "window.zoomLevel": 1,
  "editor.fontVariations": false
}

?我上面的配置是自己常用的,可以參考,基本每一個(gè)配置都有對(duì)應(yīng)的中文解釋?zhuān)梢院芊奖愕目炊?/p>

source.fixall.eslint

over~?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-819623.html

到了這里,關(guān)于VScode 工作區(qū)配置 和 用戶(hù)配置的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • vscode如何修改工作區(qū)(workspaces)目錄

    vscode如何修改工作區(qū)(workspaces)目錄

    首先 ctrl+shift+P 調(diào)出搜索框 其次搜索Workspace settings (json),并打開(kāi) 打開(kāi)以后將\\\"path\\\"后的路徑由之前的默認(rèn)路徑修改為目標(biāo)文件夾的完成路徑即可。 ?

    2024年02月11日
    瀏覽(26)
  • [VScode]-連接服務(wù)器無(wú)法解析工作區(qū)文件夾問(wèn)題的解決

    [VScode]-連接服務(wù)器無(wú)法解析工作區(qū)文件夾問(wèn)題的解決

    目錄 【問(wèn)題狀況】 【解決方法】 【補(bǔ)充】 1.如何添加新的host IP地址 2.配置完成后通過(guò)ssh訪問(wèn)服務(wù)器出現(xiàn)Bad owner or permissions on 2.1解決方法1 2.2解決方法2 在使用VScode通過(guò)Samba服務(wù)器的時(shí)候,發(fā)現(xiàn)無(wú)法正常的打開(kāi),文件夾顯示感嘆號(hào)。 ?同時(shí)右下角會(huì)彈出提示 首先需要在擴(kuò)展里

    2024年02月03日
    瀏覽(215)
  • ChatGPT新功能曝光:可記住用戶(hù)信息、上傳文件和工作區(qū)

    ChatGPT新功能曝光:可記住用戶(hù)信息、上傳文件和工作區(qū)

    ?? AI新聞 ?? ChatGPT新功能曝光:可記住用戶(hù)信息、上傳文件和工作區(qū) 摘要 :一張神秘截圖曝光了ChatGPT新功能,包括可記住用戶(hù)信息的\\\"My profile\\\"、上傳和管理文件的\\\"My files\\\"以及可以讓AI使用不同風(fēng)格與用戶(hù)互動(dòng)的\\\"Workspace\\\"。爆料者指出相關(guān)代碼正在加緊更新完善,離正式發(fā)布

    2024年02月11日
    瀏覽(20)
  • 做了個(gè)vscode 小插件,用于修改window 的顏色以區(qū)分同時(shí)打開(kāi)的不同工作區(qū),快用起來(lái)吧!

    marketplace/coralize 以高效且便捷的方式自定義Visual Studio Code工作區(qū)窗口的狀態(tài)欄、標(biāo)題欄以及活動(dòng)邊欄等顏色!這將對(duì)那些需要同時(shí)打開(kāi)多個(gè)vscode窗口/工作區(qū)的人非常有用。Coralize提供了一系列中國(guó)傳統(tǒng)文化色彩,并搭配友好的用戶(hù)界面。 Customize the color scheme of Visual Studio Cod

    2024年02月03日
    瀏覽(20)
  • vscode 之 工作區(qū)的應(yīng)用(解決vue2插件vetur、vue3插件volar禁用啟用問(wèn)題)

    vscode 之 工作區(qū)的應(yīng)用(解決vue2插件vetur、vue3插件volar禁用啟用問(wèn)題)

    工作區(qū)???為什么要工作區(qū)??? 首先工作區(qū)簡(jiǎn)單理解就是vscode工作時(shí)的區(qū)域、范圍; 延申一下,為什么要工作區(qū)???不同的環(huán)境需要用到不用的插件啊,設(shè)置啊等等,這個(gè)時(shí)候怎么實(shí)現(xiàn),總不能寫(xiě)前端的時(shí)候也把java、c++需要的插件設(shè)置的什么打開(kāi)(雖然應(yīng)該可能大概

    2024年02月12日
    瀏覽(22)
  • Azure - 機(jī)器學(xué)習(xí):創(chuàng)建機(jī)器學(xué)習(xí)所需資源,配置工作區(qū)

    Azure - 機(jī)器學(xué)習(xí):創(chuàng)建機(jī)器學(xué)習(xí)所需資源,配置工作區(qū)

    本文中你可以創(chuàng)建使用 Azure 機(jī)器學(xué)習(xí)所需的資源,包含工作區(qū)和計(jì)算實(shí)例。 關(guān)注TechLead,分享AI全維度知識(shí)。作者擁有10+年互聯(lián)網(wǎng)服務(wù)架構(gòu)、AI產(chǎn)品研發(fā)經(jīng)驗(yàn)、團(tuán)隊(duì)管理經(jīng)驗(yàn),同濟(jì)本復(fù)旦碩,復(fù)旦機(jī)器人智能實(shí)驗(yàn)室成員,阿里云認(rèn)證的資深架構(gòu)師,項(xiàng)目管理專(zhuān)業(yè)人士,上億營(yíng)

    2024年02月08日
    瀏覽(23)
  • 【Linux】:初識(shí)git || centos下安裝git || 創(chuàng)建本地倉(cāng)庫(kù) || 配置本地倉(cāng)庫(kù) || 認(rèn)識(shí)工作區(qū)/暫存區(qū)(索引)以及版本庫(kù)

    【Linux】:初識(shí)git || centos下安裝git || 創(chuàng)建本地倉(cāng)庫(kù) || 配置本地倉(cāng)庫(kù) || 認(rèn)識(shí)工作區(qū)/暫存區(qū)(索引)以及版本庫(kù)

    Git 原理與使用 課程?標(biāo) ? 技術(shù)?標(biāo):掌握Git企業(yè)級(jí)應(yīng)?,深刻理解Git操作過(guò)程與操作原理,理解?作區(qū),暫存區(qū),版本庫(kù)的含義 ? 技術(shù)?標(biāo):掌握Git版本管理,?由進(jìn)?版本回退、撤銷(xiāo)、修改等Git操作?式與背后操作原理 ? 技術(shù)?標(biāo):掌握Git分?管理,從分?創(chuàng)建,切換,

    2024年02月05日
    瀏覽(39)
  • Git--本地修改文件暫存工作區(qū)和恢復(fù)至工作區(qū)

    Git--本地修改文件暫存工作區(qū)和恢復(fù)至工作區(qū)

    當(dāng)克隆一個(gè)項(xiàng)目到本地之后,經(jīng)常需要修改配置文件,那如何做到下次再更新代碼,不重復(fù)修改配置文件??赏ㄟ^(guò)暫存工作區(qū)內(nèi)容進(jìn)行恢復(fù)。 注意:默認(rèn)恢復(fù)的就是最新一次stash 說(shuō)明:會(huì)展示所有的stash列表 git stash apply 暫存名 說(shuō)明:通過(guò)查看stash列表,把指定的stash記錄刪除

    2024年02月11日
    瀏覽(35)
  • Git——工作區(qū)管理

    Git——工作區(qū)管理

    如何管理工作目錄,以便用戶(hù)可以更高效地新建提交。如何在處理工作區(qū)和暫存區(qū)文件的過(guò)程中修復(fù)錯(cuò)誤,以及如何修復(fù)最近一次提交記錄中的問(wèn)題;同時(shí)還會(huì)了解到如何安全地使用暫存機(jī)制和多個(gè)工作目錄處理工作流中的中斷問(wèn)題。 主要內(nèi)容有以下幾點(diǎn): 忽略文件:特意

    2024年02月03日
    瀏覽(19)
  • VS Code工作區(qū)用法

    VS Code工作區(qū)用法

    背景 VS Code可以通過(guò)\\\"文件/打開(kāi)文件夾\\\"來(lái)打開(kāi)本地項(xiàng)目,但是想要打開(kāi)多個(gè)項(xiàng)目便需要來(lái)回切換,比較費(fèi)勁。此時(shí)就可以使用工作區(qū)功能,將不同的項(xiàng)目放置到同一個(gè)工作區(qū)中,這樣切換項(xiàng)目的時(shí)候就會(huì)非常方便。 操作方法 打開(kāi)其中一個(gè)項(xiàng)目 執(zhí)行命令:文件 》 打開(kāi)文件夾

    2024年01月25日
    瀏覽(18)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包