최근 Visual Studio Marketplace에서 확장 프로그램 다운로드 버튼이 사라지면서, 오프라인 설치나 백업 목적의 다운로드가 불편해졌습니다. 특히 사내망이나 인터넷이 차단된 환경에서는 이 문제가 더 크게 다가오죠.
다행히도, 예전 방식대로 직접 URL을 통해 .vsix 파일을 받아 설치하는 방법이 여전히 유효합니다. 이 글에서는 그 방법을 정리해보겠습니다.
기존에는 있었던 "Download Extension" 버튼... 지금은??
예전에는 아래와 같이 확장 페이지에서 쉽게 .vsix 파일을 다운로드할 수 있는 버튼이 있었습니다.
지금은 더 이상 제공되지 않습니다!
지금 가능한 방법: 직접 URL 생성
예전 공식 문서에 따르면, 다음과 같은 형식의 URL로 확장 프로그램을 직접 다운로드할 수 있습니다:
<https://$>{publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${extension name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
필요한 정보는 3가지:
- 게시자 이름 (publisher)
- 확장 프로그램 이름 (extension name)
- 버전 (version)
예시: Excel Viewer (버전 4.2.59)
- 마켓플레이스 URL:
- https://marketplace.visualstudio.com/items?itemName=GrapeCity.gc-excelviewer
- 추출한 정보:
- Publisher: GrapeCity
- Extension Name: gc-excelviewer
- Version: 4.2.59
생성된 다운로드 URL:
<https://GrapeCity.gallery.vsassets.io/_apis/public/gallery/publisher/GrapeCity/extension/gc-excelviewer/4.2.59/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage>
이 링크를 브라우저에 입력하면 .vsix 파일을 직접 받을 수 있습니다.
파일명은 모두 동일하므로, 다운로드 후 반드시 파일명을 바꿔주세요
Microsoft.VisualStudio.Services.VSIXPackage 이름은 전부 이거여서 extensionname.vsix 로 바꿔주세요
예: gc-excelviewer-4.2.59.vsix
주의사항
- 일부 확장(예: C#)은 설치 후에도 추가 다운로드가 필요하므로, 완전한 오프라인 설치가 불가능할 수 있습니다.
- 오프라인 배포가 필요한 경우에는 Offline Extension Packaging 문서를 참고하세요.
자동 링크 생성 북마클릿
아래 자바스크립트 코드를 북마클릿으로 저장하면, 확장 페이지에서 클릭만으로 .vsix 다운로드 링크로 이동할 수 있습니다:
javascript
복사편집
javascript:(function() {
var ver = document.querySelector("[data-bind='text: version']").innerText;
var pub = window.location.href.replace(/.*itemName=(.*?)\\.(.*)/, "$1");
var name = window.location.href.replace(/.*itemName=(.*?)\\.(.*)/, "$2");
window.location = "https://" + pub + ".gallery.vsassets.io/_apis/public/gallery/publisher/" + pub + "/extension/" + name + "/" + ver + "/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage";
})()
이후 적용방법
https://hunseop2772.tistory.com/334
Vscode -VSIX 오프라인 설치, 내부망 NextJs 설치 실행, .npmrc 변경, 확장파일 위치
회사에서 업무를 하는 경우 많은 기업에서 보안과 고객의 개인정보를 보호하기 위해 내부망가 외부망을 따로 구분하여 인터넷이 안되게 하는 경우가 많이 있어 기존 개인이 설
hunseop2772.tistory.com
출처
How can I install Visual Studio Code extensions offline? - Stack Overflow
How can I install Visual Studio Code extensions offline?
I have installed Visual Studio Code on a machine that is not, and cannot be, connected to the Internet. According to the documentation, I can install an extension from the command line if I have the .
stackoverflow.com
https://code.visualstudio.com/docs/configure/extensions/extension-marketplace#_common-questions
Extension Marketplace
Discover, add, update, disable and uninstall Visual Studio Code extensions (plug-ins) through the Extension Marketplace.
code.visualstudio.com
'업무 기록 > ETC' 카테고리의 다른 글
KISA K-Shield Spring 프레임워크 시큐어코딩 SonarQube 소나큐브 (정적 분석 도구, ISMS) (2) | 2025.05.02 |
---|---|
Windows 환경에서 Kafka와 Docker download및 실행과 테스트 (1) | 2025.04.25 |
스트랭글러 패턴(Strangler Pattern): 레거시 시스템 현대화의 지혜와 어원 (1) | 2025.04.11 |
웹 애플리케이션에서 특수문자와 유니코드 문자 처리 시 발생하는 XSS 이슈 (0) | 2025.03.31 |
대용량 데이터 처리 방식 과 흐름 (0) | 2025.02.23 |