Skip to content

Instantly share code, notes, and snippets.

@hoonminkim
Created October 4, 2018 12:24
Show Gist options
  • Save hoonminkim/19224bc8fe91e892b9d4e48f7514676b to your computer and use it in GitHub Desktop.
Save hoonminkim/19224bc8fe91e892b9d4e48f7514676b to your computer and use it in GitHub Desktop.

Revisions

  1. hoonminkim created this gist Oct 4, 2018.
    12 changes: 12 additions & 0 deletions vscode_extension_folder_option.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # VisualStudio Code Extension Folder Command Line Option

    컴퓨터 보안 설정 때문에 C 드라이브에 있는 vscode extension folder 에 vscode 가 extension 을 설치할 수 없는 문제가 있었다.
    다행히도 vscode 는 extension folder 를 변경하는 기능을 제공한다.
    실행 시 command line argument 를 다음과 같이 넣어주면 된다.
    ```
    code.exe --extensions-dir [extension folder path]
    ```
    매 실행 시 마다 저 argument 를 넣어줘야 하므로 윈도우즈 환경에서는 바로가기(.lnk) 파일에 다음과 같이 설정하면 바로가기로 실행 시 매번 argument 를 넣어줄 수 있다.
    ```
    "[vscode installation folder]\code.exe" --extensions-dir [extension folder path]
    ```