Actualizar la lista de códigos de Visual Studio de archivos


Visual Studio Code (Versión 0.10.11, en OSX) no actualiza los archivos de una carpeta. ¿Hay alguna manera de forzarlo a refrescarse? Actualmente tengo que cerrar y reabrir todo el programa.

Author: AJP, 2016-03-31

6 answers

Utilice el comando workbench.action.reloadWindow. Vaya a File -> Preferences -> Keyboard Shotcuts y defina un atajo para este comando. En mi sistema se encuentra en Ctrl+F5. La entrada en keybindings.json se ve así:

{
  "key": "ctrl+f5",
  "command": "workbench.action.reloadWindow",
  "when": "editorTextFocus"
}
 40
Author: Wosi,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-30 11:36:10

Puede usar la paleta de comandos para recargar la ventana:

  1. Abra la paleta de comandos con la vista > Paleta de Comandos... (o Shift+Cmd + P en OS X)
  2. Escriba reload window y presione enter
 21
Author: Jason Anderson,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-12-27 00:42:55

No debería necesitar recargar toda la ventana, solo la lista de carpetas. Recargar la ventana matará terminales, perderá el historial de deshacer, etc. Prueba este enlace de teclas:

{
  "key": "ctrl+f5",
  "command": "workbench.files.action.refreshFilesExplorer"
}
 7
Author: Daniel Imms,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-01-31 17:00:51

Encontré esto hoy con VS Code 1.13.0 y en los atajos de teclado veo

workbench.files.action.refreshFilesExplorer
 5
Author: Jack Click,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-14 15:34:31

"Ctrl + Alt + R" en v 1.27.1 a partir del 9/11/18

 0
Author: Jeff Fasulkey,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-09-11 17:39:31

Para recargar un solo archivo:

  • P P
  • escriba "Revertir archivo"

En Windows:

  • Ctrl + Shift + P
  • escriba "Revertir archivo"

Probado en VSCode v1.18.1 en Windows

 -1
Author: Dave,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-10 20:22:30