Due to a recent computer issue I had to purchase a new computer. Fortunately I was able to install the old SSD drive in the new computer as a 2nd SSD device (D:). I installed VS Code on the C: drive. So the questions... Is there a folder/file on the D: drive that I can move to the C: drive so that all of the installed extensions and setting will be available?
under C:\Users\{Username}\.vscode you find a folder called extensions, this contains all your extensions
copy the folder and paste it in the second device
Related
I have installed the portable edition of vscode on a mega sync folder, and I'm accessing this folder on two different computers that have the same pc/user names, and in both pc vscode is located in the exact same directory:
D:\MEGAsync\vscode
All files open in the editor are accessible and exist on both computers, for example:
D:\MEGAsync\a.txt, D:\MEGAsync\b.txt, etc.
However, when I save/close the workspace in the first computer and open it on the second computer it doesn't contain any of the files I was working on...
In the docs of the portable edition, it says all files exist in the same directory in the folder data, what i'm missing?
VSCode just introduced a new local history feature built into the application. However I cannot find where the older version of files I worked on are stored on my computer when local history is turned on.
Does anyone know where the local history of older file versions are stored on Windows and Linux computers?
From https://github.com/microsoft/vscode/issues/26339#issuecomment-1070884696
That depends on how VSCode is run:
local desktop client with local workspace: local file system
local desktop client with remote file system backed workspace: remote file system
web client with remote file system backed workspace: remote file system
web client with non-file-system-backed workspace (e.g. vscode.dev): IndexedDB in the browser
When stored in the file system, there is a folder called History in
the folder User that is stored at the user-data-dir, which depends
on the OS you are on. That is the same location where e.g. also
backups go or UI state.
Following those directions, on Windows 11 local file system I found it at
C:\Users\Mark\AppData\Roaming\Code\User\History
for Stable and
C:\Users\Mark\AppData\Roaming\Code - Insiders\User\History
for Insiders.
I can't answer it for Linux. But see https://stackoverflow.com/a/70453798/836330 for more on user-data-dir and Linux. It says it is in ~/.config/Code on Linux but I can't personally verify that.
Linux
/home/USER/.config/VSCodium/User/History/
Windows
C:\Users\USER\AppData\Roaming\VSCodium\User\History
I am using VSCodium, so I imagine you will replace VSCodium with Visual Studio Code in the path.
When I run the installer, on the third stage it gives the error "The drive or UNC share you selected does not exist or is not accessible. Please select another". I tried pasting the installed to another drive but it didn't work. There's no option to choose installation drive while installing.
I have a machine without internet access on which I'd like to install a list of VSCode extensions.
Is there an automated way of downloading the extensions while online, so I can copy the files to the offline machine and install them there? Ideally I'd like to be able to re-run the process to download updates.
I'm aware it's possible to manually download each extension, but given the number of extensions and their frequency of updates, I'd ideally like a repeatable process.
Would something like running a script in Portable Mode help?
Thanks!
If you can have vscode installed in the machine which has internet access you can use it to download the extensions and copy it to the other machine.
Let's say machine A has internet connection and machine B has no internet access.
Download the portable version of vscode i.e. .zip version from https://code.visualstudio.com/Download
After unzipping the VS Code download in machine A, create a data folder within VS Code's folder.
The data folder can be moved to other VS Code installations.
Copy the complete vscode directory to the machine B from machine A, this way you will have a portable version of vscode there.
Now whenever you need to update the extensions in the machine B, you can update the extension in machine A and copy the data folder or more precisely copy the extensions folder in the machine B.
FYR. I just copied entensions from below folder to the private network machine and they worked:
C:\Users\{xxx}\.vscode\extensions
I had BitLocker encrypted external HDD that I used on my Mac (with M3 BitLocker Loader). After adding several files I moved back to my Windows PC and decrypted the drive. Now the files that were added on my Mac are no longer there. How can I retrieve my files?
It turns out that the files weren't available on MAC OS only, otherwise they were still there.. though some of them were damaged