问题描述:
WebStorm 中 格式化height: 25 rpx
会出现空格问题
//windows系统
-i s/"\ rpx"/rpx/g $FilePath$
//MacOS系统
-i "" s/"\ rpx"/rpx/g $FilePath$
苹果系统如图所示配置

windows系统如图所示配置

注意:windows系统需要下载sed这个软件才行
下载地址:sed下载地址
WebStorm 中 格式化height: 25 rpx
会出现空格问题
//windows系统
-i s/"\ rpx"/rpx/g $FilePath$
//MacOS系统
-i "" s/"\ rpx"/rpx/g $FilePath$
本文标题:WebStorm格式化代码【微信小程序rpx出现空格问题】
本文链接:https://www.haomeiwen.com/subject/mxkgwhtx.html
网友评论