first
This commit is contained in:
21
.vscode/extensions.json
vendored
Normal file
21
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
/*
|
||||
推荐扩展。
|
||||
一键安装方式:
|
||||
1.点击左侧的扩展图标
|
||||
2. 点击筛选扩展器图标
|
||||
3.点击工作区推荐右侧的下载图标一键安装
|
||||
*/
|
||||
"recommendations": [
|
||||
// "antfu.vite", // 在编辑器内预览/调试您的应用程序
|
||||
// "antfu.iconify", // hover 内联显示相应的图标
|
||||
"antfu.unocss", // 一款零配置的 CSS 框架
|
||||
"vue.volar", // Vue 3 的开发必备扩展
|
||||
"dbaeumer.vscode-eslint", // ESLint 支持
|
||||
// "editorConfig.editorConfig", // EditorConfig 支持
|
||||
// "uni-helper.uni-highlight-vscode", // 对条件编译的代码注释部分提供了语法提示、高亮、折叠
|
||||
// "uni-helper.uni-app-snippets-vscode" // uni-app 基本能力代码片段。
|
||||
// "uni-helper.uni-ui-snippets-vscode" // uni-ui 基本能力代码片段
|
||||
// "uni-helper.uni-helper-vscode" // Uni Helper 扩展包集合
|
||||
]
|
||||
}
|
||||
36
.vscode/settings.json
vendored
Normal file
36
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
// 禁用 prettier,使用 eslint 的代码格式化
|
||||
"prettier.enable": false,
|
||||
// 保存时自动格式化
|
||||
"editor.formatOnSave": false,
|
||||
// 保存时自动修复
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit",
|
||||
"source.organizeImports": "never"
|
||||
},
|
||||
"eslint.validate": [
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"vue",
|
||||
"html",
|
||||
"markdown",
|
||||
"json",
|
||||
"jsonc",
|
||||
"yaml"
|
||||
],
|
||||
// 消除json文件中的注释警告
|
||||
"files.associations": {
|
||||
"manifest.json": "jsonc",
|
||||
"pages.json": "jsonc"
|
||||
},
|
||||
// 消除Unknown at rule @apply警告
|
||||
"css.customData": [
|
||||
".vscode/unocss.json"
|
||||
],
|
||||
"i18n-ally.localesPaths": [
|
||||
"src/locales",
|
||||
"src/locales/langs"
|
||||
]
|
||||
}
|
||||
11
.vscode/unocss.json
vendored
Normal file
11
.vscode/unocss.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": 1.1,
|
||||
"atDirectives": [
|
||||
{
|
||||
"name": "@apply"
|
||||
},
|
||||
{
|
||||
"name": "@screen"
|
||||
}
|
||||
]
|
||||
}
|
||||
48
.vscode/vue3.code-snippets
vendored
Normal file
48
.vscode/vue3.code-snippets
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
// Place your 工作区 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
|
||||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
|
||||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
|
||||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
|
||||
// Placeholders with the same ids are connected.
|
||||
// Example:
|
||||
// "Print to console": {
|
||||
// "scope": "javascript,typescript",
|
||||
// "prefix": "log",
|
||||
// "body": [
|
||||
// "console.log('$1');",
|
||||
// "$2"
|
||||
// ],
|
||||
// "description": "Log output to console"
|
||||
// }
|
||||
"Print Vue3 SFC": {
|
||||
"scope": "vue",
|
||||
"prefix": "v3",
|
||||
"body": [
|
||||
"<template>",
|
||||
" <view class=\"\">$1</view>",
|
||||
"</template>\n",
|
||||
"<script lang=\"ts\" setup>",
|
||||
"//$2",
|
||||
"</script>\n",
|
||||
"<style lang=\"scss\" scoped>",
|
||||
"//$3",
|
||||
"</style>\n",
|
||||
],
|
||||
},
|
||||
"Print style": {
|
||||
"scope": "vue",
|
||||
"prefix": "st",
|
||||
"body": ["<style lang=\"scss\" scoped>", "//", "</style>\n"],
|
||||
},
|
||||
"Print script": {
|
||||
"scope": "vue",
|
||||
"prefix": "sc",
|
||||
"body": ["<script lang=\"ts\" setup>", "//$3", "</script>\n"],
|
||||
},
|
||||
"Print template": {
|
||||
"scope": "vue",
|
||||
"prefix": "te",
|
||||
"body": ["<template>", " <view class=\"\">$1</view>", "</template>\n"],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user