引言
香香软软的VSCode小姐就应该被调教成⭐😡。
VSCode清理
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| home.php?mod=space&uid=251666 example:
@echo off
call:EmptyOneDir "%userprofile%\AppData\Local\Microsoft\vscode-cpptools\ipch" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\CachedExtensionVSIXs" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\Cache" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\CachedData" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\CachedExtensions" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\CachedExtensionVSIXs" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\Code Cache" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\Crashpad" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\logs" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\Service Worker\CacheStorage" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\Service Worker\ScriptCache" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\User\workspaceStorage" call:EmptyOneDir "%userprofile%\AppData\Roaming\Code\User\History"
goto end
:EmptyOneDir rem same as Let empty [path] /q echo empty %1 echo del %1 /s /q /f del %1 /s /q /f echo rd %1 /s /q rd %1 /s /q echo md %1 md %1 :end
|
上述代码另存为:CleanVsCode.bat定期运行清理(会删历史线)
官方绿化版:官网:https://code.visualstudio.com/Download
下载并解压.zip格式的压缩包,在程序根目录创建一个data文件夹就是绿色版
Vscode中文注释乱码
Ctrl+,打开设置->搜索Files.autoGuessEncoding
->启用并重启vscode
Vscode中 code runner插件删除C/C++生成的exe文件
vscode中 code runner插件删除C/C++生成的exe文件_vscode自动删除exe-CSDN博客
扩展->Code Runner->扩展设置->Code-runner:Executor Map->在settings,json中编辑
1 2 3 4
| "code-runner.executorMap": { "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt && del $dir$fileNameWithoutExt.exe", "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt && del $dir$fileNameWithoutExt.exe" }
|
Code Runner设置启用Run In Terminal
&&Save File Before Run
->重启