前言
逛B站看到itorr大佬做的石蒜模拟器,太魔性了,根本停不下来,就打算移植到vscode插件里
原作者 Original Author:卜卜口 itorr
原项目仓库 OriginalGit:https://github.com/itorr/sakana
移植者 Transplanter:Zander Alastor
vscode插件仓库 ExtensionGit:https://github.com/UFOAlastor/sakana-hop
插件安装可以直接在vscode插件市场中搜索石蒜
成品展示



功能概况 Overview
- 支持放大缩小人物
- 点击人物正下方按钮切换人物
- 拖动人物正下方按钮移动人物
- 自动模式,自动摇摆
- 语言切换
E:
- Supports zooming in and out of characters
- Click the button below the character to switch the character
- Drag the button below the character to move the character
- Automatic mode, automatic swing
- Language switching
安装问题 Install
若依赖启动失败:
- windows可尝试使用以管理者身份运行vscode
- mac 请留意是否将vscode从【下载】移动到【应用程序】里
- mac 可通过【检查vscode是否可以更新】来判断软件是否处于可写的硬盘中
E:
If the dependency startup fails:
- Windows can try running vscode as administrator
- Mac: please pay attention to whether to move vscode from [Download] to [application]
- the Mac can determine whether the software is in the writable hard disk by checking whether the vscode can be updated
卸载注意! Uinstall!
先进入插件设置取消勾选“启动”
直接删除插件会导致注入vscode的js代码未被删除
如果已经直接删除插件,图像还存在于vscode上,请进入以下路径手动删除:
(旧版本vscode) C:\Users\your_id\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-browser\workbench\
(新版本vscode) C:\Users\your_id\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench\
文件目录下只有workbench.js和workbench.html是原始文件,其余皆为插件注入的文件
其中workbench.js内第三行起由注释包裹部分也是注入的数据,若依旧存在需要手动删除
E:
Firstly, uncheck "start" in extension settings
Deleting the extension directly will cause the JS code injected into vscode not to be deleted!
if the extension has been deleted directly and the image still exists on vscode, please enter the following path to delete it manually:
(old version vscode) C: \ users \ your_ id\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-browser\workbench\
(new version vscode) C: \ users \ your_ id\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench\
in the file directory, only workbench.js and workbench.html are original files, and the rest are files injected by extensions
the part wrapped by comments in the third line of workbench.js is also the injected data. If it still exists, it needs to be deleted manually