当前位置:网站首页>WeChat developer tools set the tab size to 2
WeChat developer tools set the tab size to 2
2022-07-30 00:10:00 【lazy】
We usually use VSCode when we develop, but we use Wechat developer tools when we develop WeChat mini-programs. When we use VSCode to develop, we generally use the indented 2 format.However, the default tab size in the WeChat developer tool is 4, so in order to conform to our usual development habits, we need to change the tab size of the WeChat applet to 4.
Single file format
First, we right-click the file to be formatted, and then select command panel
in the right-click menu option, or we directly use the shortcut key ctrl+shift+alt+p
to exhaleCommand Palette.
Then we enter indent
Do a search and select the Click on the Indent with tabs
option.
This time we choose 2
, but this setting is only for the current file, and the update is only this time, so we need to change the default setting.
Editor Settings
First we click settings
-editor settings
in the upper left corner to open the following interface
Then change the tab size to 2.
Some projects may have a limit on the tab size, so setting it to 2 is still invalid. At this time, you need to find the project.config.json
file, and then find the editorSetting
>options
Then we add the tabSize
optionChange it to 2.
边栏推荐
- Wincc报表教程(SQL数据库的建立,wincc在数据库中保存和查询数据,调用Excel模板把数据保存到指定的位置和打印功能)
- The strongest JVM in the whole network is coming!(Extreme Collector's Edition)
- 1326. 灌溉花园的最少水龙头数目 动态规划
- ZLMediaKit源码分析 - WebRtc连接迁移
- MySQL 用 BETWEEN AND 日期查询包含范围边界
- 全国双非院校考研信息汇总整理 Part.2
- 外包干了五年,废了...
- Codeforces Round #805 (Div. 3) Summary
- C陷阱与缺陷 第4章 链接 4.3 命名冲突与static修饰符
- 综合练习——三子棋小游戏
猜你喜欢
I.MX6U-驱动开发-3-新字符驱动
The go language (functions, closures, defer, panic/recover, recursion, structure, json serialization and deserialization)
论文精读——YOLOv3: An Incremental Improvement
Apache Doris 1.1 特性揭秘:Flink 实时写入如何兼顾高吞吐和低延时
Genesis与Axis Ventures互动密切
UE4 makes crosshair + recoil
vim相关介绍(二)
管理区解耦架构见过吗?能帮客户解决大难题的
Codeforces Round #805 (Div. 3)总结
rk-boot framework combat (1)
随机推荐
rk-boot框架实战(1)
Vulkan与OpenGL对比——Vulkan的全新渲染架构
【集训DAY18】有趣的交换【模拟】【数学】
新媒体运营必备的4个热点查询网
自媒体人如何打造出爆文?这3种类型的文章最容易爆
经典论文-SqueezeNet论文及实践
Genesis与Axis Ventures互动密切
Adaptive feature fusion pyramid network for multi-classes agriculturalpest detection
mysql使用on duplicate key update批量更新数据
读书笔记:《这才是心理学:看穿伪心理学的本质(第10版)》
综合练习——三子棋小游戏
EA&UML日拱一卒-状态图::重画按钮状态图
BEVDetNet: Bird's Eye View LiDAR Point Cloud based Real-time 3D Object Detection for Autonomous Drivi
单片机开发之拓展并行I/O口
The basic parallel I/O port of single chip microcomputer development
指令集数据产品如何设计和实现报表协同系统——基于指令集物联网操作系统的工业协同制造项目开发实践
1326. 灌溉花园的最少水龙头数目 动态规划
全国双非院校考研信息汇总整理 Part.1
抖音短视频流量获取攻略,掌握好这些一定可以出爆款
Worthington用于细胞收获的胰蛋白酶&细胞释放程序