vim ~/.bashrc
添加code() {
“
(
l
s
−
t
−
−
d
i
r
e
c
t
o
r
y
−
−
/
.
v
s
c
o
d
e
−
s
e
r
v
e
r
/
b
i
n
/
∗
∣
h
e
a
d
−
n
1
)
/
b
i
n
/
r
e
m
o
t
e
−
c
l
i
/
c
o
d
e
"
"
(ls -t --directory -- ~/.vscode-server/bin/* | head -n 1)/bin/remote-cli/code" "
(ls−t−−directory−− /.vscode−server/bin/∗∣head−n1)/bin/remote−cli/code""@”
}
source ~/.bashrc //使环境变量生效
参考:https://github.com/microsoft/vscode-remote-release/issues/6357
04-10
7581
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)