vscode extension 插件管理

Command line extension management
To make it easier to automate and configure VS Code, 

it is possible to list, install, 
and uninstall extensions from the command line. 

When identifying an extension, 
provide the full name of the form publisher.extension, for example ms-python.python.

Set the root path for extensions.
code --extensions-dir 

List the installed extensions.
code --list-extensions

Show versions of installed extensions, when using --list-extension.
code --show-versions

Installs an extension.
code --install-extension ( | )

Uninstalls an extension.
code --uninstall-extension ( | )

Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.
code --enable-proposed-api () 


repeat() { while :; do $@ && return; sleep 10; done }

echo 开始获取已经安装的插件
installed=`code --list-extensions 2>&1`
echo 完成获取全部已经安装插件

tryin() {
    ison=$(echo "$installed" | grep $1)
    if [[ "$ison" != "" ]]
    then
        echo "略,早都安完了,$1"
        return 0
    fi

    echo "正在试 $1"
    msg=`code --install-extension $1 2>&1`
    echo "尝试 $1 结果: $msg"
    result=$(echo "$msg" | grep -P "TIME.*OUT | getaddrinfo.*NOT.*FOUND")
    if [[ "$result" != "" ]]
    then
        echo "网不好,再试: $1"
        return 1
    else
        echo "应该安装完了: $1"
        return 0
    fi
}

2020-08

13xforever.language-x86-64-assembly
aaron-bond.better-comments
abierbaum.vscode-file-peek
abusaidm.html-snippets
adamhartford.vscode-base64
adamwalzer.string-converter
AlanWalk.markdown-toc
alefragnani.Bookmarks
alefragnani.project-manager
annsk.alignment
bajdzis.vscode-database
bbenoist.shell
bibhasdn.unique-lines
bierner.markdown-checkbox
bierner.markdown-emoji
bierner.markdown-preview-github-styles
brunnerh.insert-unicode
cesium.gltf-vscode
chrisdias.vscode-opennewinstance
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
chrmarti.regex
CoenraadS.bracket-pair-colorizer
cschlosser.doxdocgen
cssho.vscode-svgviewer
d9705996.perl-toolbox
dakara.transformer
darkriszty.markdown-table-prettify
DavidAnson.vscode-markdownlint
dbaeumer.jshint
dbaeumer.vscode-eslint
donjayamanne.githistory
donjayamanne.python-extension-pack
DotJoshJohnson.xml
dsznajder.es7-react-js-snippets
dtsvet.vscode-wasm
eamodio.gitlens
earshinov.permute-lines
ecmel.vscode-html-css
EFanZh.graphviz-preview
eg2.vscode-npm-script
eriklynd.json-tools
esbenp.prettier-vscode
everettjf.filter-line
faustinoaq.lex-flex-yacc-bison
fcrespo82.markdown-table-formatter
florianloch.text-transform
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
geeklearningio.graphviz-markdown-preview
goessner.mdmath
gogocrow.webpack-snippets
GrapeCity.gc-excelviewer
hdg.live-html-previewer
helixquar.asciidecorator
HookyQR.beautify
HungVo.htext
IBM.output-colorizer
idleberg.emoji-code
janisdd.vscode-edit-csv
jebbs.plantuml
jeremyrajan.webpack
jerriepelser.copy-markdown-as-html
jkjustjoshing.vscode-text-pastry
jock.svg
kriegalex.vscode-cudacpp
liximomo.sftp
lmcarreiro.vscode-smart-column-indenter
luggage66.AWK
magicstack.MagicPython
maptz.regionfolder
Mebrahtom.plantumlpreviewer
mechatroner.rainbow-csv
mhutchie.git-graph
mitchdenny.ecdc
mohsen1.prettify-json
mrmlnc.vscode-json5
ms-azuretools.vscode-docker
ms-kubernetes-tools.vscode-kubernetes-tools
ms-python.python
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode.powershell
ms-vscode.Theme-MarkdownKit
ms-vscode.vscode-typescript-tslint-plugin
msjsdiag.debugger-for-chrome
msjsdiag.vscode-react-native
numso.prettier-standard-vscode
octref.vscode-json-transform
oijaz.unicode-latex
PKief.markdown-checkbox
qcz.text-power-tools
quicktype.quicktype
redhat.vscode-yaml
RomanPeshkov.vscode-text-tables
ryu1kn.edit-with-shell
ryu1kn.partial-diff
ryu1kn.text-marker
sandcastle.whitespace
sensourceinc.vscode-sql-beautify
shakram02.bash-beautify
shuworks.vscode-table-formatter
sidthesloth.svg-snippets
SimonSiefke.svg-preview
sleistner.vscode-fileutils
slevesque.shader
slevesque.vscode-autohotkey
Stephanvs.dot
stkb.rewrap
supakornras.asymptote
TabNine.tabnine-vscode
twxs.cmake
Tyriar.sort-lines
vincaslt.highlight-matching-tag
vscode-icons-team.vscode-icons
waderyan.gitblame
whiteout2.x86
wmaurer.join-lines
wwm.better-align
xabikos.JavaScriptSnippets
xabikos.ReactSnippets
ybaumes.highlight-trailing-white-spaces
Yog.yog-plantuml-highlight
yzhang.markdown-all-in-one
zeithaste.cursorCharCode
zh9528.file-size
Zignd.html-css-class-completion
zxh404.vscode-proto3

e

原文地址:https://www.cnblogs.com/Searchor/p/10575406.html