Put Nyan Cat in your VSCode!
Because of the API restrict, Nyan Cat now only show up in your VSCode status bar, but more will be done in the future.
VS Code Extensions search Nyan~
IMPORTANT 1
After install, press shift + command + p
, search Nyan Cat: refresh status bar
and execute it, Nyan Cat will display on your status bar.
安装完成后,按下shift + command + p
,输入Nyan Cat: refresh status bar
并执行,Nyan Cat 将显示在你的状态栏里。
IMPORTANT 2
After install, VSCode maybe display Your Code installation appears to be corrupt. Please reinstall
, this is because of API restrict, the extension must be inject js file into VSCode to perform related functions, this led to VSCode this prompt, but it's harmless, will not have any effect on VSCode, so just ignore it.
在安装后,VSCode 可能会提示VSCode 安装文件被破坏,请重新安装
,这是由于 API 限制的原因,扩展必须注入 js 文件到 VSCode 里来执行相关功能,这导致了出现这个提示,但它是无害的,这不会对 VSCode 有任何影响,可以直接忽略。
IMPORTANT 3
After upgrade extension, you must be press shift + command + p
, search Nyan Cat: reload Nyan Cat
and execute it, this will reload Nyan Cat, it's important.
在更新 Nyan Cat 后,你必须按下shift + command + p
,输入Nyan Cat: reload Nyan Cat
并执行来手动更新注入代码。
IMPORTANT 4
For Linux users, you may receive error when run the command, it shows xxx command not found
, this because of the VSCode extension have no permissions to modify the VSCode source code on Linux, it leds this problem, so you can run VSCode with sudo, for example:
sudo code --user-data-dir=~
Then rerun the command, and close this VSCode instance, then reopen VSCode by ordinary user, you can see the command came into effect.
对于 Linux 用户,当运行 Nyan Cat 的命令时可能会收到 xxx command not found
的错误,这是因为 VSCode 扩展在 Linux 上没有修改 VSCode 源代码的权限,这导致了这个错误,所以你可以通过 sudo 运行 VSCode,例如
sudo code --user-data-dir=~
重新运行刚刚出错的命令,然后关闭这个 VSCode 实例,以普通用户重新打开 VSCode,这是就能看到刚刚的命令生效了。
Before you actually uninstall, you must be press shift + command + p
, search Nyan Cat: ready to uninstall Nyan Cat
and execute it,
this will restore the file what you modified during the installation, it's important.
在实际卸载前,按下shift + command + p
,输入Nyan Cat: ready to uninstall Nyan Cat
并执行,这将恢复在安装过程中修改的文件,这一步很重要。
Show Nyan Cat in your status bar.
{
"NyanCat.backgroundColor": "transparent", // Nyan Cat area background color, default is transparent, it accepts any css color string.
"NyanCat.name": "bday" // what you want to show the name, default is bday
}
When after you changed the configuration, you should rerun Nyan Cat: refresh status bar
to apply it.
This will random display Nyan Cat.
Enjoy!