Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我按 b-space 获取代码块时,它会:
{ (cursor here) }
我怎样才能做到这一点?谢谢。
转到工具/选项/编辑器/代码模板。为字母 b 创建一个新模板(New,输入b,Ok),然后在Expanded Text中输入以下内容:
{ ${cursor} }
最后,将Expand Template on设置为Space。
顺便说一句,您可以通过按 { 并回车来获得相同的行为。