VSCode-leetcode installation and configuration under ubuntu
Install and configure node.js
tar -xvf node-v14.17.0-linux-x64
cd node-v14.17.0-linux-x64/bin/
./node
#ctrl+D 退出
cd ..
cd ..
#回到主目录
gedit .bashrc
#最后一行追加export PATH=$PATH:/home/freja/node-v14.17.0-linux-x64/bin/
source .bashrc
node#测试
#ctrl+D 退出
#添加软连接如下
sudo ln -s /home/freja/node-v14.17.0-linux-x64/bin/npm /usr/local/bin/
sudo ln -s /home/freja/node-v14.17.0-linux-x64/bin/node /usr/local/bin/
VSCode-leetcode can be started smoothly.
At this time, you need to log in to the leetcode account
Install the Chinese language pack
ctrl+shift+P to open the vsc console,
paste Configure Display Language and press Enter,
select to install the addtional language
and automatically jump to the plug-in installation page,
select Simplified Chinese (simplified Chinese)
log in
Click the leetcode icon at the bottom of the left tab
, click the small globe icon in the upper left corner, and select leetcode Chinese version in the
console option on the right. The console prompts you to enter your account and password to log in
. Enter your account and password as instructed