首页 > 解决方案 > 如何在 ace 编辑器中更改片段占位符变量的格式

问题描述

如何在 ace 编辑器中更改片段占位符变量的格式


    if (${1:condition_name}) {
         ${2:body}
    }

上面的代码片段将在编辑器中显示为

if(condition_name){
      body
}

but i want it as 

    if(<condition_name>){
          <body>
    }

i want placeholder variable inside this <>
i have tried the below one but it is not working
if (${1:<condition_name>}) {
     ${2:<body>}
}

标签: ace-editor

解决方案


推荐阅读