Как обновить visual studio code windows

I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10. How can I update the current version to the latest?. Like in Eclipse, check for updat...

I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10.

How can I update the current version to the latest?. Like in Eclipse, check for updates is not updating the installation, rather it gives me a zip.

Gino Mempin's user avatar

Gino Mempin

23k27 gold badges91 silver badges120 bronze badges

asked Mar 23, 2020 at 3:20

upog's user avatar

1

VS Code will automatically update itself on windows 10. If you’d like to force an update check there’s an option available for that under ‘Help > Check for Updates’.

VS Code Help>Update

If the update still doesn’t complete, you can run the installer from here as described in the official Visual Studio Code Documentation under Docs » Supporting » Howtoupdate, found here.

answered Mar 23, 2020 at 3:42

Fehr's user avatar

FehrFehr

4444 silver badges5 bronze badges

5

If Update:Mode in VS Code’s setting is on ‘none’ , ‘Check for Updates …’ option will disappear from Help. Just be sure it’s not on ‘none’ then you can check for updates.

answered Nov 14, 2021 at 22:15

c30net's user avatar

c30netc30net

1211 silver badge5 bronze badges

1

2021-12-15, if you don’t see Check for Updates... then Settings
enter image description here

Make sure it’s not none
enter image description here

Then Help, Check for updates…, it won’t auto-install. Once it downloads the update, either Help, Install update, or
enter image description here

answered Dec 15, 2021 at 19:26

Jeb50's user avatar

Jeb50Jeb50

5,8886 gold badges41 silver badges75 bronze badges

Normally you don’t need to do anything. The default configuration auto-updates and tells you it needs a restart.

If you experience different behaviour then either someone has interfered with settings in VS Code or the platform (Win/Lin/Osx) is misconfigured.

Type Ctrl+, or your platform equivalent and then filter for «update», then inspect your settings to see what may be mucked up. You can also force an update in the Help menu, and if this results in the download of a zip file it’s not VS Code that’s messed up, it’s your platform.

answered Mar 23, 2020 at 3:42

Peter Wone's user avatar

Peter WonePeter Wone

17.5k12 gold badges80 silver badges127 bronze badges

1

Running this from the command prompt seemed to work for me:

winget upgrade --id Microsoft.VisualStudioCode

I think because I was running vscode as administrator I did not see the Help->Check for updates menu item.

answered Sep 9, 2022 at 19:06

Derek's user avatar

DerekDerek

7,2674 gold badges31 silver badges54 bronze badges

1

My problem was with a later version, where update options did not appear under the Help menu. This may be because I ran a user install on a Win 2022 VM where I am Administrator user.

The above solutions did not work but I was able to resolve by running the latest user installer over the existing install (turns out the user install of VS Code does not appear in Control Panel, Uninstall program listing.) Currently this can be downloaded from https://code.visualstudio.com/.

answered Nov 29, 2022 at 0:15

NeartCarp's user avatar

My problem was that I had VS Code open as Administrator. After closing it and opening it normally I got the update to appear once again under the settings icon and in the Help menu.

If you cannot do that you can trigger the update with this command written in the terminal:

winget upgrade --id Microsoft.VisualStudioCode

answered Jan 22 at 0:04

Idrees's user avatar

IdreesIdrees

6211 gold badge5 silver badges31 bronze badges

If your update settings are OK, then there is one other possibility. Normally, you would have installed this huge piece of bloatware for your own user account only, using the «VSCodeUserSetup-.exe» installer.

But there is also a «system installer» which installs VSCode into «C:Program Files» (configuration is still kept per-user). If you installed «VSCodeSetup-.exe» (note: no «User» in the installer file name), then you have an administrative install and will not get full auto-updates, AFAIK.

answered Feb 24, 2022 at 8:18

Felix Kasza's user avatar

How to update to the latest release

The following shows you how to update to the latest release of Visual Studio Code.

Note: For Mac and Windows users, we have enabled the auto-update channel. If you’re prompted by VS Code, accept the newest update and it will get installed (you won’t need to do anything else to get the latest bits).

Auto-updates are not supported for Linux.

Updating on Linux

  • Download the VS Code zip file: 64-bit or 32-bit.
  • Open the zip and run Code

Updating on OS X

You need to do this only if auto-update did not complete.

  • Download the VS Code zip file from here.
  • Open the zip file and drag Code over to Applications.
  • Launch Code.

Updating on Windows

You need to do this only if auto-update did not complete.

Important: Close any running instances of VS Code before attempting to update (to avoid VS Code not being able to start after you update).

  • Run the installer from here.
  • If you have trouble with the Windows installer, download the VS Code zip file from here.

Common Questions

Q: How do I know which version I’m running?

A: In Linux and Windows, choose Help, About. In OS X, use Code, About Visual Studio Code.

Q: What are the supported operating system versions needed to run Visual Studio Code?

A: See Requirements for the supported OS versions.

Обновление Visual Studio

В этом разделе описывается обновление клиентской установки Visual Studio в Windows. Для Visual Studio для Mac см. раздел Обновление Visual Studio для Mac.

Если вы являетесь ИТ-администратором и хотите настроить обновление клиентов организации с помощью сетевого макета, обратитесь к руководству администраторов Visual Studio, в частности к разделу об управлении сетевыми установками и их обновлении.

Перед обновлением

Чтобы установить, обновить или изменить Visual Studio, учетная запись, с которой выполняется обновление, должна иметь административные права как на компьютере, так и в том месте, где находятся обновления продукта (интернет-ресурс или сетевая папка). Если вы вошли в систему как обычный пользователь и пытаетесь выполнить одну из этих команд, то получите уведомление системы контроля учетных записей о запросе учетных данных администратора. Дополнительные сведения см. в разделе Разрешения пользователей и Visual Studio.

Перед выполнением обновления Visual Studio необходимо закрыть. Мы настоятельно рекомендуем сохранить работу перед выполнением обновления.

Перед обновлением на компьютере необходимо сначала установить Visual Studio. Чтобы установить текущую версию Visual Studio с серверов, размещенных Майкрософт, перейдите на страницу скачиваемых материалов Visual Studio. Если в данный момент используется другой экземпляр Visual Studio, можно установить новый экземпляр одновременно с ним или удалить его перед установкой нового.

Мы рекомендуем выполнить обновление до последнего выпуска Visual Studio 2019, чтобы вы всегда имели доступ к новым функциям, улучшениям и исправлениям безопасности. А если вы хотите протестировать самую свежую версию, попробуйте скачать и установить Visual Studio 2022.

Существует несколько различных способов установить обновления Visual Studio. Можно сделать это с помощью Visual Studio Installer, проверить наличие обновлений, воспользоваться центром уведомлений среды IDE или запустить конкретную версию начального загрузчика. Вот как обновить Visual Studio 2019 с помощью этих различных методов.

Использование Visual Studio Installer

Найдите Visual Studio Installer на своем компьютере.

В меню «Пуск» Windows можно выполнить поиск по слову «установщик».

Screenshot showing the result of a Start menu search for the Visual Studio Installer.

Для продолжения работы может потребоваться обновление самого установщика. Если это так, следуйте инструкциям на экране.

Найдите в установщике экземпляр Visual Studio, который хотите обновить.

Например, если вы ранее установили Visual Studio Community 2019 и для него есть обновление, в установщике появится доступное сообщение об обновлении .

Screenshot showing a Visual Studio 2019 installation with an available update.

Чтобы установить обновления, нажмите кнопку Обновить.

Screenshot showing the Update button in the Visual Studio installer that can be used to update to a Visual Studio 2019 installation.

Когда обновление завершится, может появиться запрос на перезагрузку компьютера. В таком случае перезагрузите компьютер, а затем запустите Visual Studio, как обычно.

Если вам не будет предложено перезагрузить компьютер, выберите Запуск, чтобы запустить Visual Studio из установщика.

Screenshot showing the Launch button in the Visual Studio installer that can be used to start Visual Studio 2019.

Использование окна сообщений в среде IDE

IDE проверяет наличие доступных обновлений при запуске Visual Studio. В некоторых случаях появляется краткое сообщение об обновлении Visual Studio 2019. Если вы хотите установить его сейчас, выберите Просмотреть сведения. Если вы хотите отложить обновление до окончания работы в Visual Studio, выберите Обновить при закрытии.

Screenshot showing the

Если вы выбрали Просмотреть сведения, в появившемся диалоговом окне Обновление скачано и готово к установке нажмите кнопку Обновить, чтобы выполнить обновление сейчас.

Screenshot showing the Update button in the

Проверка обновлений вручную

Чтобы проверить доступные обновления, в строке меню выберите Справка, затем Проверить наличие обновлений. Также можно воспользоваться полем поиска, для этого нажмите клавиши CTRL+Q, введите «Проверить обновления» и выберите соответствующий результат поиска.

Screenshot showing the

В диалоговом окне Доступно обновление нажмите кнопку Обновить.

Screenshot showing the Update button in the

Использование центра уведомлений

Чтобы открыть центр Уведомления, выберите значок уведомления в правом нижнем углу IDE Visual Studio.

Screenshot showing the notification icon in the Visual Studio IDE.

Выберите обновление, которое хотите установить, в центре уведомлений. Если вы хотите установить его сейчас, выберите Просмотреть сведения. Если вы хотите отложить обновление до окончания работы в Visual Studio, выберите Обновить при закрытии.

Screenshot showing the Notification hub in Visual Studio 2019.

Если вы выбрали Просмотреть сведения, в появившемся диалоговом окне Доступно обновление нажмите кнопку Обновить.

Запуск конкретного начального загрузчика

Если вы являетесь клиентом выпуска Enterprise или Professional, то можете обновить экземпляр Visual Studio 2019 до любой версии, выпущенной позже установленной в данный момент. Чтобы обновить экземпляр Visual Studio 2019 при помощи этого метода, перейдите на страницу журнала выпусков Visual Studio 2019, скачайте начальный загрузчик нужной версии обновления в каталог установки продукта, а затем дважды щелкните его, чтобы запустить обновление.

Настройка параметров обновления

Существует несколько различных параметров, которые можно настроить для управления поведением обновления. Некоторые из них являются собственными параметрами Visual Studio 2019 и управляют тем, как и когда скачиваются и устанавливаются элементы продукта. Другие, такие как возможность настроить источник обновлений, требуют наличия последней версии установщика Visual Studio 2022.

Поведение установки и скачивания

В строке меню выберите Сервис>Параметры.

Разверните пункт Среда и выберите элемент Обновления продукта.

Screenshot showing the updates settings in Visual Studio.

Просмотрите параметры конфигурации, которые можно задать в этом диалоговом окне. Можно настроить автоматическое скачивание обновлений, позволяющее загружать обновления, когда компьютер находится в состоянии бездействия. Также можно выбрать один из двух режимов установки: Установить при скачивании или Скачать все и установить. Выберите нужные режим установки и параметры автоматического скачивания для обновлений Visual Studio.

Настройка исходного расположения обновлений

Если вы находитесь в корпоративной среде, можно настроить расположение, в котором экземпляры клиента будут искать обновления. Это полезно в случаях, когда клиент был установлен из одного сетевого макета, а в дальнейшем требуется, чтобы обновления скачивались из другого сетевого макета. Возможность настроить расположения обновлений требует наличия последней версии установщика Visual Studio 2022. Его можно получить с помощью установки Visual Studio 2022 на клиентском компьютере или от администратора через сетевой макет. Дополнительные сведения об использовании этой функции см. в документации Visual Studio 2022 по настройке исходного расположения обновлений. Ознакомьтесь также со сведениями о том, как настроить макеты Visual Studio 2019 для использования последней версии Visual Studio 2022 Installer.

Обновление при закрытии

В Visual Studio 2019 версии 16.9 мы представили концепцию обновления при закрытии. При доступном обновлении интерфейс уведомлений об обновлениях в IDE предоставляет возможность отложить его до момента намеренного закрытия Visual Studio. Кнопка Обновить при закрытии появляется в окне уведомления об обновлении, а также в центре уведомлений. Команда Обновить при закрытии не является постоянным параметром и применяется только к текущему обновлению. Другими словами, отложенное обновление при закрытии необходимо выбирать каждый раз, когда вы принимаете или закрываете уведомление о доступном обновлении.

Screenshot showing the Update on Close option in the update notification message box.

Мы рекомендуем выполнить обновление до последнего выпуска Visual Studio 2022, чтобы вы всегда имели доступ к новым функциям, улучшениям и исправлениям безопасности.

Существует несколько различных способов установить обновления Visual Studio. Можно сделать это с помощью Visual Studio Installer, проверить наличие обновлений, воспользоваться центром уведомлений среды IDE или запустить конкретную версию начального загрузчика. Вот как обновить Visual Studio 2022 с помощью этих различных методов.

Использование Visual Studio Installer

Найдите Visual Studio Installer на своем компьютере.

В меню «Пуск» в Windows выполните поиск по запросу «installer» и выберите Visual Studio Installer в результатах.

Screenshot showing the result of a Start menu search for the Visual Studio Installer.

Если вам будет предложено обновить Visual Studio Installer, прежде чем продолжить, сделайте это, следуя инструкциям.

В Visual Studio Installer найдите установку Visual Studio, которую требуется обновить.

Например, если вы ранее установили Visual Studio Community 2022 и для него есть обновление, в Visual Studio Installer появится сообщение Доступно обновление.

Screenshot showing the Update button and message in the Visual Studio Installer when a new update is available.

Чтобы установить обновления, нажмите кнопку Обновить.

Screenshot showing the Update button that you can select to install the new update.

После завершения обновления Visual Studio Installer может предложить перезагрузить компьютер. В таком случае перезагрузите компьютер, а затем запустите Visual Studio, как обычно.

Если вам не будет предложено перезагрузить компьютер, выберите Запуск, чтобы запустить Visual Studio из Visual Studio Installer.

Screenshot showing the Launch button that you can select to start Visual Studio.

Использование окна сообщений в среде IDE

IDE проверяет наличие доступных обновлений при запуске Visual Studio. В некоторых случаях появляется краткое сообщение об обновлении Visual Studio 2022. Если вы хотите установить его сейчас, выберите Просмотреть сведения. Если вы хотите отложить обновление до окончания работы в Visual Studio, выберите Обновить при закрытии.

Screenshot showing an update message for Visual Studio 2022 in the lower-right corner of the Visual Studio IDE.

Если вы выбрали Просмотреть сведения, в появившемся диалоговом окне Доступно обновление нажмите кнопку Обновить, чтобы выполнить обновление сейчас.

Screenshot showing the Update button in the

Проверка обновлений вручную

Чтобы проверить доступные обновления, в строке меню выберите Справка, затем Проверить наличие обновлений. Также можно воспользоваться полем поиска, для этого нажмите клавиши CTRL+Q, введите «Проверить обновления» и выберите соответствующий результат поиска.

Screenshot showing the

В диалоговом окне Доступно обновление нажмите кнопку Обновить.

Screenshot showing the Update button in the

Использование центра уведомлений

Чтобы открыть центр уведомлений, выберите значок уведомления в правом нижнем углу Visual Studio IDE.

Screenshot showing the notification icon in the Visual Studio IDE.

Выберите обновление, которое хотите установить, в центре уведомлений. Если вы хотите установить его сейчас, выберите Просмотреть сведения. Если вы хотите отложить обновление до окончания работы в Visual Studio, выберите Обновить при закрытии.

Screenshot showing the Notifications hub in the Visual Studio IDE.

Если вы выбрали Просмотреть сведения, в появившемся диалоговом окне Доступно обновление нажмите кнопку Обновить.

Запуск конкретного начального загрузчика

Если вы являетесь клиентом выпуска Enterprise или Professional, то можете обновить экземпляр Visual Studio 2022 до любой версии, выпущенной позже установленной в данный момент. Чтобы обновить экземпляр Visual Studio 2022 при помощи этого метода, перейдите на страницу журнала выпусков Visual Studio 2022, скачайте начальный загрузчик нужной версии обновления в каталог установки продукта, а затем дважды щелкните его, чтобы запустить обновление.

Настройка параметров обновления

Существует несколько различных параметров, которые можно настроить для управления поведением обновления, например, как и когда скачиваются и устанавливаются элементы продукта или где располагается источник обновлений.

Поведение установки и скачивания

В строке меню выберите Сервис>Параметры.

Разверните пункт Среда и выберите элемент Обновления продукта.

Screenshot showing the Updates settings in the Options window of the Visual Studio IDE.

Просмотрите параметры конфигурации, которые можно задать в этом диалоговом окне. Можно настроить автоматическое скачивание обновлений, позволяющее загружать обновления, когда компьютер находится в состоянии бездействия. Также можно выбрать один из двух режимов установки: Установить при скачивании или Скачать все и установить. Выберите нужные режим установки и параметры автоматического скачивания для обновлений Visual Studio.

Настройка исходного расположения обновлений

В Visual Studio 2022 теперь можно настроить, откуда клиенты будут получать обновления. Эти исходные расположения обновлений называются «каналы». Дополнительные сведения о назначении и доступности каналов см. в документации по циклу выпуска Visual Studio. Корпорация Майкрософт предоставляет всем пользователям доступ к текущему каналу и каналу предварительного просмотра, а клиентам выпусков Enterprise и Professional — доступ к каналам долгосрочного обслуживания (LTSC). ИТ-администраторы также могут настраивать исходные расположения обновлений, например сетевые макеты, к которым у клиентов должен быть доступ. Дополнительные параметры и сведения о настройке см. в руководстве администраторов Visual Studio.

Существует два способа открыть диалоговое окно «Параметры обновления», позволяющее изменить канал, из которого экземпляр Visual Studio должен получать обновления.

  1. Откройте Visual Studio Installer, выберите экземпляр, который хотите настроить, нажмите кнопку «Дополнительные параметры» , а затем выберите пункт меню Параметры обновления. Дополнительные сведения о том, как найти Visual Studio Installer, см. в предыдущих инструкциях.

Screenshot showing the Updates settings in the Installer.

  1. Диалоговое окно «Параметры обновления» также можно вызвать другим способом. Для этого откройте Visual Studio IDE, вызовите диалоговое окно «Доступно обновление» (нажав Просмотреть сведения в уведомлении об обновлении или Проверить наличие обновлений в меню «Справка»), а затем щелкните ссылку «Изменить параметры обновления».

Screenshot showing the Updates settings in the Update available dialog in the IDE.

Диалоговое окно Параметры обновления будет выглядеть следующим образом. В этом примере экземпляр Visual Studio использует канал LTSC 17.0.

Screenshot showing the Updates settings dialog in the Visual Studio 2022 IDE.

Выбрав необходимое значение в раскрывающемся списке Канал обновления, вы можете управлять исходным расположением будущих обновлений для этого экземпляра Visual Studio. Следует учитывать следующие особенности:

  • Канал предварительного просмотра и текущий канал доступны для всех выпусков Visual Studio, а каналы LTSC — только для клиентов выпусков Professional и Enterprise.
  • Можно обновить экземпляр Visual Studio сразу после настройки расположения канала обновления. Или отложить фактическое обновление продукта на более позднее время. Настройка канала обновления и обновление продукта — это два независимых события. Сведения о программном управлении каналом обновления см. в разделе Использование команды modifySettings.
  • Канал обновления можно изменить только в том случае, если последняя версия продукта, доступная на этом канале, новее установленной. Например, всегда можно перейти с текущего канала на канал предварительного просмотра, но перейти с канала предварительного просмотра на текущий можно, только если последний выпуск на текущем канале является более поздним, чем установленный выпуск из канала предварительного просмотра.
  • При обновлении канала будет установлен последний выпуск, находящийся на нем. Если вы являетесь корпоративным клиентом и хотите установить определенную версию продукта из этого канала, следуйте приведенным выше инструкциям Запуск конкретного начального загрузчика.
  • Все каналы LTSC имеют даты истечения срока действия, как показано на рисунке выше. После его окончания LTSC нельзя будет использовать в качестве источника обновлений, и этот канал исчезнет из списка.
  • Все каналы Майкрософт размещаются на серверах Майкрософт, и для них требуется доступ к Интернету.
  • Для каждого экземпляра Visual Studio независимо можно настроить источник обновлений. Если у вас установлено два экземпляра Visual Studio 2022, их можно обновлять из разных каналов.
  • ИТ-администраторы могут управлять этим текстом в раскрывающемся списке Канал обновления. Например, они могут добавлять расположения сетевых макетов в качестве источников обновлений. Также они могут сделать расположения, размещенные Майкрософт, недоступными в качестве источников обновлений. Эта функция также работает в установках Visual Studio 2019. Сведения о настройке этих расположений обновлений см. на странице Установка значений по умолчанию для корпоративных развертываний.

Обновление при закрытии

При доступном обновлении интерфейс уведомлений об обновлениях в IDE предоставляет возможность отложить его до момента намеренного закрытия Visual Studio. Кнопка Обновить при закрытии появляется в окне уведомления об обновлении, а также в центре уведомлений. Команда Обновить при закрытии не является постоянным параметром и применяется только к текущему обновлению. Другими словами, отложенное обновление при закрытии необходимо выбирать каждый раз, когда вы принимаете или закрываете уведомление о доступном обновлении.

Screenshot showing the Update on Close option in the update notification message box.

Обновления администратора

Если вы входите в организацию с централизованным управлением установленными версиями программного обеспечения, администратор предприятия может управлять обновлениями Visual Studio на вашем компьютере. Дополнительные сведения о том, как администрировать и настраивать типы обновлений, которые поддерживаются на компьютере, см. в разделе Использование Configuration Manager для развертывания обновлений Visual Studio.

Поддержка или устранение неполадок

Иногда возникают проблемы. Если установить Visual Studio не удается, воспользуйтесь пошаговыми указаниями в статье Устранение неполадок при установке и обновлении Visual Studio.

Как обновить VS Code на Windows?

У меня есть VS Code версии 1.37.1, и я хочу обновить до текущей доступной версии 1.43. Моя ОС — Windows 10.

Как я могу обновить текущую версию до последней? Как и в Eclipse, проверка обновлений не обновляет установку, а скорее дает мне почтовый индекс.

2 ответа

Обычно вам не нужно делать что-либо . Конфигурация по умолчанию автоматически обновляется и сообщает о необходимости перезагрузки.

Если вы испытываете другое поведение, то кто-то вмешался в настройки в VS Code или неправильно настроена платформа (Win / Lin / Osx).

Введите Ctrl + или эквивалент вашей платформы, а затем отфильтруйте «обновление», а затем проверьте ваши настройки, чтобы увидеть, что может быть испорчено. Вы также можете принудительно выполнить обновление в меню «Справка», и если это приводит к загрузке zip-файла, это не VS код, который испортил, а ваша платформа.

VS Code автоматически обновится в Windows 10. Если вы хотите принудительно проверить проверку обновлений, для этого есть опция в разделе «Справка> Проверка обновлений».

VS Code Help>Update

Если обновление все еще не завершено, вы можете запустить установщик с здесь как описано в официальной документации по коду Visual Studio в разделе Документы »Поддержка» Howtoupdate, найдено здесь..

How to update VS Code on Windows?

I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10.

How can I update the current version to the latest?. Like in Eclipse, check for updates is not updating the installation, rather it gives me a zip.

5 Answers 5

VS Code will automatically update itself on windows 10. If you’d like to force an update check there’s an option available for that under ‘Help > Check for Updates’.

VS Code Help>Update

If the update still doesn’t complete, you can run the installer from here as described in the official Visual Studio Code Documentation under Docs » Supporting » Howtoupdate, found here.

user avatar

If Update:Mode in VS Code’s setting is on ‘none’ , ‘Check for Updates . ‘ option will disappear from Help. Just be sure it’s not on ‘none’ then you can check for updates.

user avatar

2021-12-15, if you don’t see Check for Updates. then Settings enter image description here

Make sure it’s not none enter image description here

Then Help, Check for updates. , it won’t auto-install. Once it downloads the update, either Help, Install update, or enter image description here

Normally you don’t need to do anything. The default configuration auto-updates and tells you it needs a restart.

If you experience different behaviour then either someone has interfered with settings in VS Code or the platform (Win/Lin/Osx) is misconfigured.

Type Ctrl+, or your platform equivalent and then filter for «update», then inspect your settings to see what may be mucked up. You can also force an update in the Help menu, and if this results in the download of a zip file it’s not VS Code that’s messed up, it’s your platform.

Installation

  1. Download the Visual Studio Code installer for Windows.
  2. Once it is downloaded, run the installer (VSCodeUserSetup-{version}.exe). This will only take a minute.
  3. By default, VS Code is installed under C:Users{Username}AppDataLocalProgramsMicrosoft VS Code.

Alternatively, you can also download a Zip archive, extract it and run Code from there.

Tip: Setup will add Visual Studio Code to your %PATH%, so from the console you can type ‘code .’ to open VS Code on that folder. You will need to restart your console after the installation for the change to the %PATH% environmental variable to take effect.

User setup versus system setup

VS Code provides both Windows user and system level setups. Installing the user setup does not require Administrator privileges as the location will be under your user Local AppData (LOCALAPPDATA) folder. User setup also provides a smoother background update experience.

The system setup requires elevation to Administrator privileges and will place the installation under Program Files. This also means that VS Code will be available to all users in the system.

See the Download Visual Studio Code page for a complete list of available installation options.

32-bit versions

If you need to run a 32-bit version of VS Code, both a 32-bit Installer and Zip archive are available.

Updates

VS Code ships monthly releases and supports auto-update when a new release is available. If you’re prompted by VS Code, accept the newest update and it will be installed (you won’t need to do anything else to get the latest bits).

Note: You can disable auto-update if you prefer to update VS Code on your own schedule.

Windows Subsystem for Linux

Windows is a popular operating system and it can be a great cross-platform development environment. This section describes cross-platform features such as the Windows Subsystem for Linux (WSL) and the new Windows Terminal.

Recent Windows build

Make sure you are on a recent Windows 10 build. Check Settings > Windows Update to see if you are up-to-date.

Windows as a developer machine

With WSL, you can install and run Linux distributions on Windows. This enables you to develop and test your source code on Linux while still working locally on your Windows machine.

When coupled with the WSL extension, you get full VS Code editing and debugging support while running in the context of WSL.

See the Developing in WSL documentation to learn more or try the Working in WSL introductory tutorial.

New Windows Terminal

Available from the Microsoft Store, the Windows Terminal (Preview) lets you easily open PowerShell, Command Prompt, and WSL terminals in a multiple tab shell.

Next steps

Once you have installed VS Code, these topics will help you learn more about VS Code:

  • Additional Components — Learn how to install Git, Node.js, TypeScript, and tools like Yeoman.
  • User Interface — A quick orientation to VS Code.
  • User/Workspace Settings — Learn how to configure VS Code to your preferences through settings.
  • Tips and Tricks — Lets you jump right in and learn how to be productive with VS Code.

Common questions

What command-line arguments are supported by the Windows Setup?

VS Code uses Inno Setup to create its setup package
for Windows. Thus, all the Inno Setup command-line switches are available for use.

Additionally, you can prevent the Setup from launching VS Code after completion with /mergetasks=!runcode.

Scrolling is laggy and not smooth

On certain devices, editor scrolling is not smooth but laggy for an unpleasant experience. If you notice this issue, make sure you install the Windows 10 October 2018 update where this issue is fixed.

I’m having trouble with the installer

Try using the zip file instead of the installer. To use this, unzip VS Code in your AppDataLocalPrograms folder.

Note: When VS Code is installed via a Zip file, you will need to manually update it for each release.

Icons are missing

I installed Visual Studio Code on my Windows 8 machine. Why are some icons not appearing in the workbench and editor?

VS Code uses SVG icons and we have found instances where the .SVG file extension is associated with something other than image/svg+xml. We’re considering options to fix it, but for now here’s a workaround:

Using the Command Prompt:

  1. Open an Administrator Command Prompt.
  2. Type REG ADD HKCR.svg /f /v "Content Type" /t REG_SZ /d image/svg+xml.

Using the Registry Editor (regedit):

  1. Start regedit.
  2. Open the HKEY_CLASSES_ROOT key.
  3. Find the .svg key.
  4. Set its Content Type Data value to image/svg+xml.
  5. Exit regedit.

Unable to run as admin when AppLocker is enabled

With the introduction of process sandboxing (discussed in this blog post) running as administrator is currently unsupported when AppLocker is configured due to a limitation of the runtime sandbox. If your work requires that you run VS Code from an elevated terminal, you can launch code with --no-sandbox --disable-gpu-sandbox as a workaround.

Subscribe to issue #122951 to receive updates.

2/2/2023

Visual Studio Code Docs Ru

Запуск Visual Studio Code на Windows

Установка

  1. Загрузите Visual Studio Code для Windows
  2. После его загрузки запустите установщик (VSCodeSetup-version.exe). Это займет всего минуту.
  3. По умолчанию VS Code устанавливается в C: Program Files (x86) Microsoft VS Code для 64-разрядной машины.

Здесь вы также можете найти Zip-архив.

Примечание: Для VS Code требуется .NET Framework 4.5.2. Если вы используете Windows 7, убедитесь, что установлена .NET Framework 4.5.2.

Совет: Программа установки дополнительно добавит Visual Studio Code к вашему %PATH%, поэтому из консоли вы можете ввести ‘code’. Чтобы открыть VS Code в этой папке. Вам понадобится перезапустить консоль после установки для изменения переменной окружения %PATH% для вступления в силу.

Обновление

VS Code получает ежемесячные выпуски и поддерживает автоматическое обновление при наличии новой версии. Если вам будет предложено, примите новейшее обновление и оно будет установлено (вам не нужно ничего делать, чтобы получить последние обновления). Если вы предпочитаете управлять обновлениями VS Code вручную, см. Раздел Как отключить автоматическое обновление.

Следующие шаги

Общие вопросы

Проблемы с установщиком

Попробуйте использовать zip-файл вместо установщика. Чтобы использовать это, распакуйте VS Code в папку Program Files.

Примечание: Когда VS Code устанавливается через Zip-файл, вам необходимо вручную обновить его для каждой версии.

Значки отсутствуют

Я установил код Visual Studio на моем компьютере с Windows 7 или 8. Почему некоторые значки не отображаются в рабочем столе и редакторе?

VS Code использует значки SVG, и мы обнаружили экземпляры, в которых расширение файла .SVG связано с чем-то другим, отличным от image / svg + xml. Мы рассматриваем варианты исправления, но на данный момент это обходное решение:

Использование командной строки:

  1. Откройте командную строку от имени администратора.
  2. Введите REG ADD HKCR.svg /f /v «Content Type» /t REG_SZ /d image/svg+xml.

Использование редактора реестра (regedit):

  1. Запустите regedit.
  2. Откройте ключ HKEY_CLASSES_ROOT.
  3. Найдите ключ .svg.
  4. Задайте Content Type для image/svg+xml.
  5. Выйдите из regedit.

У меня есть VS Code версии 1.37.1, и я хочу обновить до текущей доступной версии 1.43. Моя ОС — Windows 10.

Как я могу обновить текущую версию до последней? Как и в Eclipse, проверка обновлений не обновляет установку, а скорее дает мне почтовый индекс.

2 ответа

Лучший ответ

Обычно вам не нужно делать что-либо . Конфигурация по умолчанию автоматически обновляется и сообщает о необходимости перезагрузки.

Если вы испытываете другое поведение, то кто-то вмешался в настройки в VS Code или неправильно настроена платформа (Win / Lin / Osx).

Введите Ctrl + или эквивалент вашей платформы, а затем отфильтруйте «обновление», а затем проверьте ваши настройки, чтобы увидеть, что может быть испорчено. Вы также можете принудительно выполнить обновление в меню «Справка», и если это приводит к загрузке zip-файла, это не VS код, который испортил, а ваша платформа.


1

Peter Wone
23 Мар 2020 в 03:42

VS Code автоматически обновится в Windows 10. Если вы хотите принудительно проверить проверку обновлений, для этого есть опция в разделе «Справка> Проверка обновлений».

VS Code Help>Update

Если обновление все еще не завершено, вы можете запустить установщик с здесь как описано в официальной документации по коду Visual Studio в разделе Документы »Поддержка» Howtoupdate, найдено здесь..


1

Fehr
23 Мар 2020 в 03:42

title description ms.date ms.topic helpviewer_keywords ms.assetid author ms.author manager ms.workload ms.prod ms.technology

Update a network-based installation

Learn how to update a Visual Studio client that was installed from a network layout

1/20/2023

conceptual

{{PLACEHOLDER}}

{{PLACEHOLDER}}

1AF69C0E-0AC9-451B-845D-AE4EDBCEA65C

anandmeg

meghaanand

jmartens

multiple

visual-studio-windows

vs-installation

Update a Visual Studio client that was installed from a network layout

[!INCLUDE Visual Studio]

You can and should periodically update all Visual Studio clients so that they receive the latest security and functionality fixes.

If the Visual Studio client was originally installed via a network layout, then most likely the client machine is part of a «managed environment» meaning that it is governed by a central administrative team and must adhere to organizational policies. To update client machines in a managed environment consider the questions below whose answers will inform how you should approach the update process.

  • Where are the updates coming from: a network layout or Microsoft hosted servers? And if the update is coming from a network layout, is the network layout prepared?
  • Is the update going to be initiated by the user, or is it an administrator initiated event? Remember that whoever performs the update must have administrator permissions on the client machine.

Prepare the update source

If you are going to update your client from Microsoft hosted servers, then the client will download and install the latest version available from Microsoft on that channel.

If you are going to update your client from a network layout, then the first step is to prepare the network layout with the updated product. You can update your existing layout with the latest product updates so both new installations and updates will receive the updated version. Or, you can create a whole new layout in a different directory that you can use for updating the client machines.

Make sure that either the user or system account that’s running the update has proper access to the network share that contains the layout. For more information, refer to Troubleshoot network-related errors when you install or use Visual Studio.

Enable manual user-initiated client-side updates

A user on the client machine with sufficient permissions can manually initiate the Visual Studio update themselves. The Visual Studio client must be configured properly to look in the right source location for updates so that it can recognize that an update is available. If any files are in use when the update happens, like if Visual Studio is open, then Visual Studio will need to close to complete the update. Occasionally an update will require a reboot.

Manually configure where the Visual Studio client looks for updates

When Visual Studio is initially installed on the client machine, it records the location where it should check for updates. If Visual Studio was installed from Microsoft hosted servers, then it will by default look for updates from Microsoft hosted servers. If Visual Studio was installed or updated by invoking a bootstrapper on a network layout, then it will look for updates in the location specified by the layout.

::: moniker range=»vs-2019″

With default Visual Studio 2019 functionality, once the client has installed the product, the client’s update location configuration is locked and unchangable. The only way to reliably change the source location for updates is to uninstall and reinstall the product using the correct configuration.

However, if the Visual Studio client uses the latest Visual Studio 2022 Installer, then the client’s source location for updates can be changed. This is useful if you want to install from one layout but have updates come from another layout. There are two ways to get the Visual Studio 2022 Installer onto a client machine. The easiest is to simply install and use the Visual Studio 2022 product. Alternatively, you can distribute the Visual Studio 2022 installer via your Visual Studio 2019 layouts.

::: moniker-end

To manually view and configure the update location that the client will look for updates from, bring up the Update Settings, make sure it’s configured correctly. You can then initiate the update from the client.

Update notifications

If there is an update available in the location that the client is looking for updates, then the client will pop a message or a notification flag.

For details on how to control when update notifications are presented to users, see Control updates to network-based Visual Studio deployments.

Manually initiate the update

Users can manually update a Visual Studio instance by:

  • launching the Visual Studio Installer. If an update is available, they can click Update.
  • launching the Visual Studio IDE and responding to the notification flag or message, or choosing Help/Check for updates.

Programatically update the client machines

Administrators can programmatically update the client installations of Visual Studio by either issuing the commands to the client-side installer, or by invoking a bootstrapper in the layout.

Programatically update Visual Studio by using the Visual Studio Installer

You can initiate an update to Visual Studio by programmatically invoking the client’s installer and issuing the update command. This command will update Visual Studio based on the updated product available in the source location for updates. If you want to change the update source location on the client, you can do that programatically by passing in the —channelURI parameter. For example:

You can change the channel to a network layout and execute an update command on the client like this:

c:program files (x86)microsoftvisual studioinstaller>setup.exe update --installPath "C:Program FilesMicrosoft Visual Studio2019Enterprise" --channelURI "\\server\share\newlayoutdir\channelmanifest.json"

or like this, which sets the source of updates to a Microsoft hosted location:

c:program files (x86)microsoftvisual studioinstaller>setup.exe update --installPath "C:Program FilesMicrosoft Visual Studio2019Enterprise" --channelURI "https://aka.ms/vs/16/release/channel"

Programatically update Visual Studio by using a bootstrapper.

You can update Visual Studio by programatically calling a bootstrapper from the same location that you originally installed from. All bootstrappers sourced from Microsoft hosted servers are considered from the same location. If your bootstrapper was on a network layout share, then the network layout must be updated to contain the desired product updates.

\servershareoriginalinstallVSdirectoryvs_enterprise.exe update --installPath "C:clientmachineinstallpath" --quiet 

::: moniker range=»vs-2019″

You can also initiate an update your Visual Studio 2019 client by programatically calling a bootstrapper from a different source location that contains the version of the product that you want to update the client to. To do this, you need to get the Visual Studio 2022 installer on the client. The easiest way to enable this is to ensure your new Visual Studio 2019 layout is using the latest installer. If you run bootstrapper from a new layout, then the update channel on the client will be set to the update location specified in the layout. For example, you can run this command on the client machine:

::: moniker-end

::: moniker range=»>=vs-2022″

You can also initiate an update to your Visual Studio client by programatically calling a bootstrapper from a different source location that contains the version of the product that you want to update the client to. If you run bootstrapper from a new layout, then the update channel on the client will be set to the update location specified in the layout. For example, you can run this command on the client machine:

::: moniker-end

   \serversharedesiredupdatelayoutdirvs_enterprise.exe update --installPath "C:clientmachineinstallpath" --quiet 

Whatever the value of the channelURI in the new layout’s response.json file will be the location where the client looks for future updates.

[!NOTE]
Use the vswhere.exe command to identify the install path of an existing instance of Visual Studio on a client machine.

Programatically update a client that doesn’t have internet access

If your client machine doesn’t have internet access, then it must acquire the updates from a network layout. Remember that there are two parts that need to get updated whenever Visual Studio is updated. The first is the installer and the second is the Visual Studio product itself. You can instruct Visual Studio to explicitly look for both of these components from the network layout by running these commands on the client machine. The first command forces the installer to come from the layout, and the second command prevents any packages from being downloaded from Microsoft hosted servers on the internet.

   \servershareVSlayoutdirectoryvs_enterprise.exe --quiet --update --wait --offline
   \servershareVSlayoutdirectoryvs_enterprise.exe update --installPath "C:clientmachineinstallpath" --noWeb --wait --quiet --norestart

[!IMPORTANT]
The --noWeb option does not stop Visual Studio setup on an internet-connected computer from checking for updates. Rather, it prevents the client from downloading the product packages.

Get support for your network layout

If you experience a problem with your network layout, we want to know about it. The best way to tell us is by using the Report a Problem tool that appears both in the Visual Studio Installer and in the Visual Studio IDE. If you’re an IT Administrator and don’t have Visual Studio installed, you can submit IT Admin feedback here. When you use this tool, it would be very helpful if you could send the logs from the VS Collect tool which can help us diagnose and fix the problem.

We also offer an installation chat (English only) support option for installation-related issues.

We have other support options available, too. See our Visual Studio Developer Community.

See also

  • Create and maintain a network layout
  • Visual Studio administrator guide
  • Troubleshoot network-related errors when you install or use Visual Studio
  • Use command-line parameters to install Visual Studio
  • Tools for detecting and managing Visual Studio instances
  • Control updates to network-based Visual Studio deployments
  • Visual Studio product lifecycle and servicing
title description ms.date ms.topic helpviewer_keywords ms.assetid author ms.author manager ms.workload ms.prod ms.technology

Update a network-based installation

Learn how to update a Visual Studio client that was installed from a network layout

1/20/2023

conceptual

{{PLACEHOLDER}}

{{PLACEHOLDER}}

1AF69C0E-0AC9-451B-845D-AE4EDBCEA65C

anandmeg

meghaanand

jmartens

multiple

visual-studio-windows

vs-installation

Update a Visual Studio client that was installed from a network layout

[!INCLUDE Visual Studio]

You can and should periodically update all Visual Studio clients so that they receive the latest security and functionality fixes.

If the Visual Studio client was originally installed via a network layout, then most likely the client machine is part of a «managed environment» meaning that it is governed by a central administrative team and must adhere to organizational policies. To update client machines in a managed environment consider the questions below whose answers will inform how you should approach the update process.

  • Where are the updates coming from: a network layout or Microsoft hosted servers? And if the update is coming from a network layout, is the network layout prepared?
  • Is the update going to be initiated by the user, or is it an administrator initiated event? Remember that whoever performs the update must have administrator permissions on the client machine.

Prepare the update source

If you are going to update your client from Microsoft hosted servers, then the client will download and install the latest version available from Microsoft on that channel.

If you are going to update your client from a network layout, then the first step is to prepare the network layout with the updated product. You can update your existing layout with the latest product updates so both new installations and updates will receive the updated version. Or, you can create a whole new layout in a different directory that you can use for updating the client machines.

Make sure that either the user or system account that’s running the update has proper access to the network share that contains the layout. For more information, refer to Troubleshoot network-related errors when you install or use Visual Studio.

Enable manual user-initiated client-side updates

A user on the client machine with sufficient permissions can manually initiate the Visual Studio update themselves. The Visual Studio client must be configured properly to look in the right source location for updates so that it can recognize that an update is available. If any files are in use when the update happens, like if Visual Studio is open, then Visual Studio will need to close to complete the update. Occasionally an update will require a reboot.

Manually configure where the Visual Studio client looks for updates

When Visual Studio is initially installed on the client machine, it records the location where it should check for updates. If Visual Studio was installed from Microsoft hosted servers, then it will by default look for updates from Microsoft hosted servers. If Visual Studio was installed or updated by invoking a bootstrapper on a network layout, then it will look for updates in the location specified by the layout.

::: moniker range=»vs-2019″

With default Visual Studio 2019 functionality, once the client has installed the product, the client’s update location configuration is locked and unchangable. The only way to reliably change the source location for updates is to uninstall and reinstall the product using the correct configuration.

However, if the Visual Studio client uses the latest Visual Studio 2022 Installer, then the client’s source location for updates can be changed. This is useful if you want to install from one layout but have updates come from another layout. There are two ways to get the Visual Studio 2022 Installer onto a client machine. The easiest is to simply install and use the Visual Studio 2022 product. Alternatively, you can distribute the Visual Studio 2022 installer via your Visual Studio 2019 layouts.

::: moniker-end

To manually view and configure the update location that the client will look for updates from, bring up the Update Settings, make sure it’s configured correctly. You can then initiate the update from the client.

Update notifications

If there is an update available in the location that the client is looking for updates, then the client will pop a message or a notification flag.

For details on how to control when update notifications are presented to users, see Control updates to network-based Visual Studio deployments.

Manually initiate the update

Users can manually update a Visual Studio instance by:

  • launching the Visual Studio Installer. If an update is available, they can click Update.
  • launching the Visual Studio IDE and responding to the notification flag or message, or choosing Help/Check for updates.

Programatically update the client machines

Administrators can programmatically update the client installations of Visual Studio by either issuing the commands to the client-side installer, or by invoking a bootstrapper in the layout.

Programatically update Visual Studio by using the Visual Studio Installer

You can initiate an update to Visual Studio by programmatically invoking the client’s installer and issuing the update command. This command will update Visual Studio based on the updated product available in the source location for updates. If you want to change the update source location on the client, you can do that programatically by passing in the —channelURI parameter. For example:

You can change the channel to a network layout and execute an update command on the client like this:

c:program files (x86)microsoftvisual studioinstaller>setup.exe update --installPath "C:Program FilesMicrosoft Visual Studio2019Enterprise" --channelURI "\\server\share\newlayoutdir\channelmanifest.json"

or like this, which sets the source of updates to a Microsoft hosted location:

c:program files (x86)microsoftvisual studioinstaller>setup.exe update --installPath "C:Program FilesMicrosoft Visual Studio2019Enterprise" --channelURI "https://aka.ms/vs/16/release/channel"

Programatically update Visual Studio by using a bootstrapper.

You can update Visual Studio by programatically calling a bootstrapper from the same location that you originally installed from. All bootstrappers sourced from Microsoft hosted servers are considered from the same location. If your bootstrapper was on a network layout share, then the network layout must be updated to contain the desired product updates.

\servershareoriginalinstallVSdirectoryvs_enterprise.exe update --installPath "C:clientmachineinstallpath" --quiet 

::: moniker range=»vs-2019″

You can also initiate an update your Visual Studio 2019 client by programatically calling a bootstrapper from a different source location that contains the version of the product that you want to update the client to. To do this, you need to get the Visual Studio 2022 installer on the client. The easiest way to enable this is to ensure your new Visual Studio 2019 layout is using the latest installer. If you run bootstrapper from a new layout, then the update channel on the client will be set to the update location specified in the layout. For example, you can run this command on the client machine:

::: moniker-end

::: moniker range=»>=vs-2022″

You can also initiate an update to your Visual Studio client by programatically calling a bootstrapper from a different source location that contains the version of the product that you want to update the client to. If you run bootstrapper from a new layout, then the update channel on the client will be set to the update location specified in the layout. For example, you can run this command on the client machine:

::: moniker-end

   \serversharedesiredupdatelayoutdirvs_enterprise.exe update --installPath "C:clientmachineinstallpath" --quiet 

Whatever the value of the channelURI in the new layout’s response.json file will be the location where the client looks for future updates.

[!NOTE]
Use the vswhere.exe command to identify the install path of an existing instance of Visual Studio on a client machine.

Programatically update a client that doesn’t have internet access

If your client machine doesn’t have internet access, then it must acquire the updates from a network layout. Remember that there are two parts that need to get updated whenever Visual Studio is updated. The first is the installer and the second is the Visual Studio product itself. You can instruct Visual Studio to explicitly look for both of these components from the network layout by running these commands on the client machine. The first command forces the installer to come from the layout, and the second command prevents any packages from being downloaded from Microsoft hosted servers on the internet.

   \servershareVSlayoutdirectoryvs_enterprise.exe --quiet --update --wait --offline
   \servershareVSlayoutdirectoryvs_enterprise.exe update --installPath "C:clientmachineinstallpath" --noWeb --wait --quiet --norestart

[!IMPORTANT]
The --noWeb option does not stop Visual Studio setup on an internet-connected computer from checking for updates. Rather, it prevents the client from downloading the product packages.

Get support for your network layout

If you experience a problem with your network layout, we want to know about it. The best way to tell us is by using the Report a Problem tool that appears both in the Visual Studio Installer and in the Visual Studio IDE. If you’re an IT Administrator and don’t have Visual Studio installed, you can submit IT Admin feedback here. When you use this tool, it would be very helpful if you could send the logs from the VS Collect tool which can help us diagnose and fix the problem.

We also offer an installation chat (English only) support option for installation-related issues.

We have other support options available, too. See our Visual Studio Developer Community.

See also

  • Create and maintain a network layout
  • Visual Studio administrator guide
  • Troubleshoot network-related errors when you install or use Visual Studio
  • Use command-line parameters to install Visual Studio
  • Tools for detecting and managing Visual Studio instances
  • Control updates to network-based Visual Studio deployments
  • Visual Studio product lifecycle and servicing

Понравилась статья? Поделить с друзьями:
  • Как обновить visual c для windows 10 x64
  • Как обновить outlook в windows 10
  • Как обновить virtualbox в windows 10
  • Как обновить origin на windows 10
  • Как обновить teamviewer на windows xp