VsCode 扩展 - 获取暗/亮主题列表 [英] VsCode extension - get list of dark/light themes

查看:31
本文介绍了VsCode 扩展 - 获取暗/亮主题列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以以编程方式获取扩展中已安装的浅色/深色主题列表.

Is it possible to get list of installed light/dark themes in extension programmatically.

我想做一个扩展,可以在键盘命令上切换下一个颜色主题.

I want to make an extension that will switch next color theme on key command.

推荐答案

您可以获取所有扩展并搜索有助于主题的扩展:

You can get all extensions and search for the ones that contribute a theme:

vscode.extensions.all.forEach(ext => {
    console.log(ext.packageJSON.contributes.themes);
}

这篇关于VsCode 扩展 - 获取暗/亮主题列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆