I typically update the standard version of Visual Studio Code by clicking Help => Check for Updates (or just letting it update automatically in the background), but this option is missing from the Help menu in the portable version. Furthermore, it doesn't update automatically in the background despite the fact that I haven't overridden the following default settings:
"update.channel": "default",
"update.enableWindowsBackgroundUpdates": true,
Are there any other ways to update the portable version of Visual Studio Code, or do I have to manually uninstall/reinstall it every time a major update is released?
After unzipping the VS Code download, simply create a data folder within Code's folder:
|- VSCode-win32-x64-1.25.0-insider
| |- Code.exe (or code executable)
| |- data
| |- ...
The data folder can be moved to other VS Code installations. This is useful for updating your portable Code version: simply move the data folder to a newer extracted version of VS Code.
On Windows and Linux, you can update VS Code by copying the data folder over to a more recent version of VS Code.
From their docs
If you are using the one that is downloaded from github, you can just set up a github repository in your pc, pull from the github repo, and check for updates from time to time.
Related
This page mentions VSCode 1.70.3 is the last release supporting Windows 7.
There's no download for that version listed at uptodown, and there's no tag for it in the github repository.
Where I can I download that version? What changed in it compared to 1.70.2 (e.g. this answer hints possibly something about PID in debug windows?), and where can I download the source code?
Here's a link that I've uploaded from my Temp folder after my VS Code was done updating: https://drive.google.com/file/d/1DRoY4c1lhoX9n0jM1Dy0tNr4Wks4CD74/view?usp=sharing
We're trying to maintain a single set of Visual Studio Code extensions within our organisation, managed centrally. In our ideal scenario all end users have the same extensions installed, those extensions are updated on their behalf, and they are not able to install additional extensions.
We had achieved this to date by:
Installing extensions to a directory under C:\Program Files and setting the (undocumented) VSCODE_EXTENSIONS environment variable to point to that location.
Configuring a scheduled task (run as SYSTEM) that executes a powershell script with a list of extension_ids that calls code install-extension <extension_id> on each.
This solution worked until a breaking change in v1.74 expected to be able to write a new extensions.json file to the extensions directory.
Whilst we can get around this by creating a extensions.json file in that directory, I don't want to go too far down the wrong path. Is there a preferred method for centrally managing extensions for Visual Studio Code?
I had my project in VS Code's installation directory (C:\Program Files\Microsoft VS Code) because I don't like that any files related to a program placed all over the PC. Then I decided to update VSCode. After the update the folder where my project was, has gone. Are there any ways to restore it? Atleast some of the files? I'm using Windows 7 and don't have any Git accounts.
Windows build-in restoration tool gives me 1 week old folder of my project. I did alot since then. Sometimes you shouldn't work too hard.
I think your best bet is to look if there is any backup of your windows 7 computer to recover your file.
Looks like i got the same problem, when VS Code updates it updates also its installation directory C:\Program Files\Microsoft VS Code, which means any file you create in the installation directory gets deleted, so that's why the Project folder got deleted. It is best to keep your project folders and files in your system for example C:\Projects.. Alternatively you can always use version control ie Git to ensure safety of your code
We have updated the latest visual studio for mac to support our iOS app (Xamarin) in iPad OS 13 which is recently released by Apple. After the update, we are getting the following error in eclipse while detecting the local changes to check-in.
The character 0x007c ('|') is not permitted in server paths '$/<path_to_product>/.vs/<project_name>/xs/project-cache/ProjectName-Debug|iPhone.json'.
It seems to be the file name ("ProjectName-Debug|iPhone.json") with a pipe symbol that is not supported in TFS. But the file is auto-generated by the IDE (Visual studio for mac, Xcode 11) and it contains the following information (ProjectReferences, MetadataReferences, Added files with path, BuildActions, etc...). There are two files that exist with the pipe symbol. One is for the actual device and another one is for the simulator.
ProjectName-Debug|iPhone.json
ProjectName-Debug|iPhoneSimulator.json
Does anyone face this issue? How to resolve it.
Below are the version details.
Mac OS 10.14.6
Eclipse 4.7.3
Xcode 11
Visual Studio for Mac 8.2.6
Thanks in advance.
Quick fix: Currently we are manually deleting those files while committing the changes. Again it will regenerate automatically.
For local workspace, you should use .tfignore file to ignore files. Such as
# Ignore the NuGet packages folder in the root of the repository.
# If needed, prefix 'packages' with additional folder names if it's
# not in the same folder as .tfignore.
packages
# include package target files which may be required for msbuild,
# again prefixing the folder name as needed.
!packages/*.targets
As for how to generate this file, please refer my answer in this question: Visual Studio 2015 TFS .tfignore file
Note: This .tfignore file will not affect with those files already in source control.
Manually delete those files while committing the changes. Then make sure your .tfignore files has checked in source control. Next time when those files auto generated will be exclude by source control in the pending changes.
There is no "check for updates" when using the standalone/no install version.
What is best way to update a standalone version without losing settings etc.?
According to my experience (VSCode in a standalone .zip file uncompressed in D:\ using Win7 OS) you just need to download and uncompress the archive containing the new version (v 1.41.1).
When you run Code.exe in the new folder, your settings file is used and everithing is OK. (then, when you are really really sure that it is everithing OK, you could delete the old version).
If you changed the default settings file location, take a look at https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations
From the official doc it says when downloaded through zip file, one has download the release manually for each update and place the unzip version inside the Program files (Windows).
According to the special portable page all the settings, plugins, etc. of the standalone version
are stored in the data-folder. So assuming you called your vscode-folder vscode:
download the new version
unpack to vscode2 folder adjacent to current vscode
move data folder from vscode to vscode2
delete old vscode-folder
rename vscode2 to vscode
done
P.S.: Current portable versions notify about new version, but clicking on it leads to download, so above list still applies.
Edit 2020/08/04: To make a "normal" install portable one just needs to create the data folder inside the installation/unpack directory of VSC.
To download the old archive, replace user|system with archive in the URL.
Before:
https://update.code.visualstudio.com/1.69.2/win32-x64-user/stable
After:
https://update.code.visualstudio.com/1.69.2/win32-x64-archive/stable