如何在编辑扩展的配置后重新启动 VScode? [英] How to restart VScode after editing extension's config?

查看:41
本文介绍了如何在编辑扩展的配置后重新启动 VScode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你打开一个扩展的配置时,VScode 会通知你:

<块引用>

记得重启VScode

但它没有说明如何.他们使用大写字母表示 restart 单词,所以通常如果你强调一个称谓,它应该意味着什么.是否有隐藏的重启按钮或快捷键?如何重新启动 IDE?

解决方案

执行 workbench.action.reloadWindow 命令.

一些方法可以做到这一点:

  1. 打开命令面板(Ctrl + Shift + P)并执行命令:

    >重新加载窗口

  2. keybindings.json 中定义命令的键绑定(例如 CTRL+F5):

    <预><代码>[{"key": "ctrl+f5","command": "workbench.action.reloadWindow","when": "editorTextFocus"}]

VScode notifies you when you open a config of an extension:

remember to Restart VScode

But it says nothing about how. They use capital letter for restart word, so normally it should mean something if you emphasize an appellation. Is there some hidden restart button or a key shortcut? How do I restart the IDE?

解决方案

Execute the workbench.action.reloadWindow command.

There are some ways to do so:

  1. Open the command palette (Ctrl + Shift + P) and execute the command:

    >Reload Window    
    

  2. Define a keybinding for the command (for example CTRL+F5) in keybindings.json:

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

这篇关于如何在编辑扩展的配置后重新启动 VScode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆