VsCode中ctrl+s后会在当前目录下自动生成dist目录的方法
作者:辣辣的草莓酱 时间:2023-04-25 09:19:41
在VsCode
中ctrl+s
后会在当前目录下自动生成dist
目录
解决办法:关闭compile-hero
插件
在设置中搜索compile-hero
插件
关闭所有自动生成dist
目录的选项(如下图所示)
PS:下面看下vue项目Ctrl+s vscode代码自动格式化
前言
多人开发vue项目,代码风格形式不一
vscode保存代码,自动按照eslint规范格式化代码设置(vscode最新版配置)
vscode插件
首先vscode需要装一些vscode插件
ESLint、Vetur、Prettier-Code formatter、GitLens-Git supercharged
配置settings.json
打开settings.json,贴上配置,注意自己原有的vscode主题和字体等不要替换掉
打开方式
方式一:
1)文件 ------.>【首选项】---------->【设置】
2)搜索emmet.include;
3)在settings.json下的【工作区设置】中添加
方式二:
Ctrl + P 搜索settings.json
贴上如下配置
{
"window.zoomLevel": 0,
"diffEditor.ignoreTrimWhitespace": false,
"workbench.colorTheme": "One Monokai",
"editor.fontSize": 14,
"workbench.editor.enablePreview": true, //预览模式关闭
"editor.formatOnSave": true, // #每次保存的时候自动格式化
// 自动修复
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
"eslint.enable": true, //是否开启vscode的eslint
// vscode默认启用了根据文件类型自动设置tabsize的选项
"editor.detectIndentation": false,
// 重新设定tabsize
"editor.tabSize": 2,
// #去掉代码结尾的分号
"prettier.semi": false,
// #使用单引号替代双引号
"prettier.singleQuote": true,
// #让prettier使用eslint的代码格式进行校验
"prettier.eslintIntegration": true,
"javascript.preferences.quoteStyle": "double",
"typescript.preferences.quoteStyle": "double",
// #让函数(名)和后面的括号之间加个空格
"javascript.format.insertSpaceBeforeFunctionPare
来源:https://blog.csdn.net/weixin_38233549/article/details/108226135
标签:VsCode,dist,目录,自动格式化
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python 将列表里的字典元素合并为一个字典实例
2021-07-26 15:45:09
Python 通过调用接口获取公交信息的实例
2023-06-17 21:16:46
详解如何通过Python制作一个密码生成器
2023-11-24 10:36:43
![](https://img.aspxhome.com/file/2023/6/63986_0s.png)
Numpy中扁平化函数ravel()和flatten()的区别详解
2022-09-23 08:52:23
python直接访问私有属性的简单方法
2022-09-18 12:03:47
PyCharm+Miniconda3安装配置教程详解
2022-03-26 08:31:16
![](https://img.aspxhome.com/file/2023/7/79627_0s.png)
使用pyqt 实现重复打开多个相同界面
2021-08-19 12:33:43
python中绑定方法与非绑定方法的实现示例
2021-01-03 03:59:13
![](https://img.aspxhome.com/file/2023/6/65896_0s.png)
python 利用jinja2模板生成html代码实例
2023-11-19 18:56:41
Python海龟绘图详解
2022-07-26 02:02:02
![](https://img.aspxhome.com/file/2023/7/133427_0s.png)
520使用Python实现“我爱你”表白
2022-07-16 05:25:47
![](https://img.aspxhome.com/file/2023/0/115150_0s.jpg)
一文学会使用OpenCV构建文档扫描仪
2023-08-02 12:35:05
![](https://img.aspxhome.com/file/2023/1/70831_0s.png)
python实现坦克大战游戏 附详细注释
2023-06-26 07:58:13
thinkphp3.2.3版本的数据库增删改查实现代码
2023-10-19 15:07:53
浏览器常用基本操作之python3+selenium4自动化测试(基础篇3)
2023-10-19 04:49:03
![](https://img.aspxhome.com/file/2023/8/100808_0s.png)
Python实现的使用telnet登陆聊天室实例
2023-11-17 10:41:17
![](https://img.aspxhome.com/file/2023/8/112988_0s.png)
matplotlib之属性组合包(cycler)的使用
2021-04-16 19:31:04
![](https://img.aspxhome.com/file/2023/8/97348_0s.png)
一段Asp301重定向过程代码
2010-05-04 16:38:00
UTF-8转为GB2312编码的asp函数
2007-08-23 13:42:00
HTML 5 预览
2008-01-24 12:17:00
![](https://img.aspxhome.com/file/UploadPic/20081/24/2008124122637981s.gif)