VSCodeの編集画面で右クリックしたときのコンテキストメニューを編集することはできますか。
例えば単語を選択したときに大文字や小文字に変更したりとか、複数行選択したときにソートするとか。
追記
コメントで提示されたurlを参考にいろいろ試しているのですがどうもうまくいきません。
これらは新規に拡張機能を作成するということなんでしょうか?
自身で作成したcolor-themeのpackage.jsonに"menus"を追加してみましたが表示できませんでした。
{
"name": "theme-slateblue",
"displayName": "%displayName%",
"description": "%description%",
"version": "0.0.1",
"engines": { "vscode": "*" },
"contributes": {
"themes": [
{
"label": "Slateblue",
"uiTheme": "vs-dark",
"path": "./themes/slateblue-color-theme.json"
}
],
"menus": {
"editor/context": [{
"when": "editorHasSelection && editorTextFocus",
"command": "editor.action.transformToLowercase",
"group": "modification"
}]
}
}
}
このような方法ではだめなのでしょうか。
何か間違いがあると思うのですが、ご指摘いただければ幸いです。