Skip to content

kiddyuchina/vsc-mikutap

Repository files navigation

icon

VSC Mikutap

Mikutap extension for Visual Studio Code

Visual Studio Marketplace Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Rating GitHub Stars

Feature

原作地址: https://aidn.jp/mikutap
插件使用 Webview 实现

Requirement

VS Code 使用的 Electron 版本不包含 ffmpeg,需替换自带的 ffmpeg 动态链接库才能正常播放 (每次更新 VS Code 都需重新替换)

VS Code for Windows 1.31.0 - 1.35.1 不需替换,1.36.0 后无此待遇

Manual Replacement

通过 VS Code 版本在 https://raw.githubusercontent.com/Microsoft/vscode/%version%/.yarnrc 查看其使用的 Electron 版本,并于 https://github.com/electron/electron/releases/tag/%version% 下载对应的 Electron 完整版本进行替换

Windows

下载 electron-%version%-win32-%arch%.zip

替换 ./ffmpeg.dll

macOS

下载 electron-%version%-darwin-x64.zip

替换 ./Electron.app/Contents/Frameworks/Electron\ Framework.framework/Libraries/libffmpeg.dylib

Linux

下载 electron-%version%-linux-%arch%.zip

替换 ./libffmpeg.so

Automatic Replacement

使用 Python 脚本替换 (Python 2/3 均可,绝大部分发行版自带环境)

默认安装位置下 Linux 和 Windows 需要以管理员身份运行,macOS 不需要

Windows Powershell

Invoke-RestMethod https://gist.githubusercontent.com/nondanee/f157bbbccecfe29e48d87273cd02e213/raw | python

Unix Shell

curl https://gist.githubusercontent.com/nondanee/f157bbbccecfe29e48d87273cd02e213/raw | python

如果 VS Code 使用默认配置安装,脚本会自动寻找并替换,若自定义了安装位置,请自行修改 installation

Usage

按下 F1Ctrl Shift P 打开命令面板

输入命令前缀 Mikutap 开始探索 :D

Known Issue

  • Webview 标签无法隐藏,使用时请不要关闭标签

Thanks

About

♪♫ ¶(⁄•˅̮•∖)⁋ ♪♬ Mikutap extension for Visual Studio Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published