-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartvscode.bat
27 lines (22 loc) · 1.04 KB
/
startvscode.bat
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
@if not defined _echo echo off
rem %APPDATA%\Code\User
rem %USERPROFILE%\.vscode\extensions
rem vc++ directory
rem C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC
rem Clean java the workspace directory
echo checking java workspace Storage
for /f "tokens=*" %%G in ('dir /b /s /a:d "%APPDATA%\Code\User\workspaceStorage\*redhat.java"') do rmdir /Q /S %%G && echo %%G deleted!
rem for /f "tokens=*" %%G in ('dir /b /s /a:d "../usersetting/User/workspaceStorage/*redhat.java"') do rmdir /Q /S %%G && echo %%G deleted!
rem set language to english set VSLANG=1033
set VSLANG=1033
rem Start Developer Command Prompt
for /f "usebackq delims=" %%i in (`%~dp0%.vscode\vswhere.exe -prerelease -latest -property installationPath`) do (
if exist "%%i\Common7\Tools\vsdevcmd.bat" (
call "%%i\Common7\Tools\vsdevcmd.bat" %* && cd /d %~dp0%
rem call code --user-data-dir ../usersetting --extensions-dir ../extensions .
call code .
exit /b 0
)
)
rem Instance or command prompt not found
exit /b 2