简体   繁体   中英

Get rid of Vscode's inline window on cmd click and navigate directly to code

I've updated my Vscode to 1.43 (from a few versions below) and now when I Cmd+Click any class/type etc in TypeScript, instead of navigating to its definition, I get this arguably worst designed popup "inline window" ever:

在此处输入图像描述

This ugly window comes up whenever I click Response . Before updating Vscode, it would just navigate to definition of Response normaly by opening the file that contains the symbol as a new tab.

How can I get back to the normal behavior and get rid of this weird behavior completely?

Following rioV8 s advice in comments, I've searched for peek and found out that it can (fortunately) be disabled in settings.json . Adding .vscode/settings.json (or modifying it) file and putting the following solved the problem:

{
    "editor.gotoLocation.multipleDefinitions": "goto",
    "editor.gotoLocation.multipleDeclarations": "goto",
    "editor.gotoLocation.multipleImplementations": "goto",
    "editor.gotoLocation.multipleReferences": "goto",
    "editor.gotoLocation.multipleTypeDefinitions": "goto",
}

Using the top menu, click Code -> Preferences -> Settings

在此处输入图像描述

Then search for peak, and under Text Editor , set the following 5 settings to goto

  • Editor › Goto Location: Multiple Declarations
  • Editor › Goto Location: Multiple Definitions
  • Editor › Goto Location: Multiple Implementations
  • Editor › Goto Location: Multiple References
  • Editor › Goto Location: Multiple Type Definitions

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM