program story

Visual Studio Code 파일 목록 새로 고침

inputbox 2020. 12. 3. 07:50
반응형

Visual Studio Code 파일 목록 새로 고침


Visual Studio Code (OSX의 버전 0.10.11)는 폴더의 파일을 새로 고치지 않습니다. 강제로 새로 고치는 방법이 있습니까? 현재는 전체 프로그램을 닫았다가 다시 열어야합니다.


편집 : 그 동안 파일 탐색기 위젯에 다시로드 버튼이 추가되었습니다.

workbench.action.reloadWindow명령을 사용하십시오 . File -> Preferences -> Keyboard Shotcuts이 명령에 대한 바로 가기로 이동하여 정의하십시오. 내 시스템에서는 Ctrl+에 배치됩니다 F5. 의 항목은 keybindings.json다음과 같습니다.

{
  "key": "ctrl+f5",
  "command": "workbench.action.reloadWindow",
  "when": "editorTextFocus"
}

네비게이터에서 작업 공간 루트 위로 마우스를 가져 가면 오른쪽에 4 개의 아이콘이 나타납니다. 세 번째 아이콘 인 원형 화살표는 새로 고침으로 파일 목록을 다시로드합니다.

여기에 이미지 설명 입력


명령 팔레트를 사용하여 창을 다시로드 할 수 있습니다.

  1. Open the command palette with View > Command Palette... (or Shift+Cmd+P on OS X)
  2. Type reload window and press enter

You shouldn't need to reload the entire window, just the folder list. Reloading the window will kill terminals, lose undo history, etc. You can do this using the refresh button in the explorer (second from the right):

여기에 이미지 설명 입력

If you find you need to do this a lot you can add a keybinding for it, for example:

{
  "key": "ctrl+f5",
  "command": "workbench.files.action.refreshFilesExplorer"
}

Ran across this today with VS Code 1.13.0 and in Keyboard Shortcuts I see

workbench.files.action.refreshFilesExplorer

To reload a single file:

  • ⇧⌘P
  • type "Revert File"

On Windows:

  • Ctrl + Shift + P
  • type "Revert File"

Tested in VSCode v1.18.1 on Windows


sln을 마우스 오른쪽 버튼으로 클릭합니다 (0 / n 솔루션이라고 표시됨) 대화 상자의 맨 아래 행에 프로젝트 솔루션 다시로드라고 표시됩니다. 존재하지 않는 경우, 아마도 다시로드되었을 것입니다. 빌드를 다시 실행하십시오.


v 1.27.1에서 "Ctrl + Alt + R"(2018 년 9 월 11 일 기준)

참고 URL : https://stackoverflow.com/questions/36333117/refresh-visual-studio-code-list-of-files

반응형