Comments (6)
谢谢反馈,格式化是 minapp 插件内部做的,不是 vscode 的功能。
你说的那个忽略text标签格式化问题,其实配置早就写了,好像一直忘记暴露出来,刚加上了。
更新到 1.7.2,配置 minapp-vscode.reserveTags = ["text"]
即可!
from minapp-vscode.
<view class="desc">请输入你当前绑定的手机号码<text>138******00</text></view>
我是希望这种也能不被格式化掉。
from minapp-vscode.
这个也不太好实现,另外即使格式化也不影响布局吧,text标签格式化后可能影响布局
from minapp-vscode.
有时候为了简洁,喜欢额外空一行。这样读代码的时候不会因为太紧凑而一眼找不到想看到的部分。这个能暴露出不格式化的配置吗?
from minapp-vscode.
@anran758 没有实现你说的功能,哪些空行应该保留,哪些空行应该删除好难决断
from minapp-vscode.
@anran758 没有实现你说的功能,哪些空行应该保留,哪些空行应该删除好难决断
我今天也遇到这个问题。。可以参考下这个项目的解决方式,感觉还是挺好的。
不过没事,我先用其他格式化插件凑合了
"max_preserve_newlines": 1, // 最多可以保留几个空行
"preserve_newlines": true, // 是否允许保留空行
from minapp-vscode.
Related Issues (20)
- [Feature]: 支持wxs 函数格式化 HOT 5
- 这是一个bug,tabSize 是一个 tab 在编辑器里面的长度,不是 tab 的个数
- 微信小程序标签 自定义循环对象的bug[Bug]: HOT 1
- 格式化wxml标签自定义循环变量的bug HOT 1
- [Feature]: 可以让text标签保持原样,不要做格式化吗? HOT 3
- [Bug]: 组件只有用class定义才有属性自动提示,原生直接用Component定义的无法自动提示
- [Bug]: wxml format error: Maximum call stack size exceeded HOT 1
- 是否能以npm命令的方式格式化wxml吗 HOT 5
- [Feature]: 在js文件中点击this.xxxx 无法跳转到当前定义的方法 HOT 1
- [Feature]: HOT 1
- [Bug]: 用prettier格式化wxml的时候报错prettier不支持wxml的格式化 HOT 1
- [Bug]: 标签补全之后,需要先删除空格,再输入空格,然后才能触发属性补全
- [Bug]: 使用 prettyHtml 格式化wxml文件,空串属性格式化不符合预期
- [Feature]: 支持[email protected],并且兼容[email protected]
- [Bug]: wxs标签内的代码格式化不对 HOT 2
- [Bug]: 某个 workspace 下右键无法出现新建component和page,有的 workspace 却可以 HOT 3
- [Bug]: prettier format error: Invalid host defined options HOT 2
- [Bug]: 换行属性不生效,是我姿势问题吗 HOT 4
- [Bug]: image标签自动闭合不符合预期
- 最近New Miniprogram Component没了啊 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minapp-vscode.