Skip to content

zhengrenzhe/vscode-Nyan-Cat

Repository files navigation

Nyan Cat for VSCode

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.

VSCode

Install

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,这是就能看到刚刚的命令生效了。

Uninstall

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并执行,这将恢复在安装过程中修改的文件,这一步很重要。

Features

Show Nyan Cat in your status bar.

Extension Settings

{
    "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.

Cat Names List

random

This will random display Nyan Cat.

GB

GB

bday

bday

breakfast

breakfast

easter

easter

grumpy

grumpy

jacksnyan

jacksnyan

jazz

jazz

mexinyan

mexinyan

mummy

mummy

nyan

nyan

nyancoin

nyancoin

nyaninja

nyaninja

paddy

paddy

pikanyan

pikanyan

sadnyan

sadnyan

slomo

slomo

technyancolor

technyancolor

uhmurica

uhmurica

vday

vday

xmas

xmas

zombie

zombie

Enjoy!

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •