添加VSCode插件开发边栏入口package.json配置执行效果
package.json配置
如果只为了标记而直接复制代码,则注释会出错,无法在json中进行注释
' contributes': {//命令定义' commands ' : [ { ' command ' : ' test plugin.search ',' title': '搜索' } //定义侧栏图标“views containers”: { ' activity bar ' : [ { id ' : ' test plugin ',' titivitybar'3360] //定义边栏布局' views ' 3360 { '测试插件' 3360 } { ' id ' 3360 } ' name ' : '测试插件1'}, /菜单' menus ' : { ' view/title ' : [ { ' command ' 3360 ' test plugin.search ',' group ' : ' navigation ] { 'command': 'testplugin.set ',' when ' : ' view==test plugin ' group ' : ' sider line @1'//strong制此组