Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh Visual Studio Code list of files

Visual Studio Code (Version 0.10.11, on OSX) does not refresh the files in a folder. Is there any way to force it to refresh. Currently I have to close and reopen the whole program.

like image 336
AJP Avatar asked Mar 31 '16 12:03

AJP


People also ask

How do I find and replace all occurrences in all files in Visual Studio code?

VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term.

How do you clean VS code?

You can also run code cleanup across your entire project or solution. Right-click on the project or solution name in Solution Explorer, select Analyze and Code Cleanup, and then select Run Code Cleanup.

How do I replace all occurrences in Visual Studio?

You can find and replace text in the Visual Studio editor by using Find and Replace (Ctrl+F or Ctrl+H) or Find/Replace in Files (Ctrl+Shift+F or Ctrl+Shift+H). You can also find and replace only some instances of a pattern by using multi-caret selection.

How do you sync files with VS code?

Open up your Command Palette with CMD+Shift+P (on Mac) or navigate to View and Command Palette. Type “Sync Upload” which will filter the commands and hit enter once the Sync: Update/Upload Settings option is selected.


3 Answers

EDIT: In the meanwhile a reload button has been added to the file explorer widget.

Use the workbench.action.reloadWindow command. Go to File -> Preferences -> Keyboard Shotcuts and define a shortcut for this command. On my system it's placed on Ctrl+F5. The entry in keybindings.json looks like this:

{
  "key": "ctrl+f5",
  "command": "workbench.action.reloadWindow",
  "when": "editorTextFocus"
}
like image 138
Wosi Avatar answered Oct 10 '22 14:10

Wosi


If you hover over the workspace root in the navigator, four icons appear to the right of it. The third of those icons, a circular arrow, is Refresh -- it reloads the file list.

enter image description here

like image 86
AmigoNico Avatar answered Oct 10 '22 12:10

AmigoNico


You can use the command palette to reload the window:

  1. Open the command palette with View > Command Palette... (or Shift+Cmd+P on OS X)
  2. Type reload window and press enter
like image 52
Jason Anderson Avatar answered Oct 10 '22 12:10

Jason Anderson