问题描述
我需要翻译清单,例如小写,大写,大写.这样的清单在哪里?好的文档.
I need list of transormations, like downcase, upcase, capitalize.Where is the list of such? Good documentation.
推荐答案
官方文档为摘要语法.它显示了转换,但仅提供了一个示例.内置的转换是
The official documentation is snippets grammar. It shows the transforms but only provides one example. The built-in transforms are
/upcase or /downcase or /capitalize or /pascalcase
/pascalcase
是提交于10月添加的.2018年2月2日,但尚未纳入文档(截至2019年6月).它可以做到这一点:
/pascalcase
was added by a commit on October 2, 2018 but hasn't made it into the documentation (as of June, 2019). It works to do this:
some-file-name.js =>SomeFileName
//或其他分隔符,例如 _
或任何 [^ a-z]/i
字符.
some-file-name.js => SomeFileName
// or another separator like _
or any [^a-z]/i
character.
由于代码段转换的功能最近得到了增强,请参见占位符转换,v1.25发行说明(还有另一个示例),很快就会有更多示例发布.
Since the capability of snippet transforms has recently been enhanced, see placeholder transforms, v1.25 release notes (with another example) there should be more examples arriving on SO soon.
有关示例,请参见和
这篇关于VSCode中的代码片段中的转换和正则表达式-Docs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!