简体   繁体   English

Visual Studio 2022 正在从调用堆栈中打开文件并在底部窗格中搜索 window

[英]Visual Studio 2022 is opening files from the call stack and search window in the bottom pane

I'm debugging a C# ASP.NET app.我正在调试 C# ASP.NET 应用程序。 When I double click on an item in the call stack it's opening the file in the bottom pane of Visual Studio 2022. I know how to change where all these persistent windows like (Call Stack, Breakpoints, etc.) open, but I can't figure out how to change where files get opened in the call stack.当我双击调用堆栈中的一个项目时,它会在 Visual Studio 2022 的底部窗格中打开文件。我知道如何更改所有这些持久性 windows(如调用堆栈、断点等)打开的位置,但我不能不知道如何更改文件在调用堆栈中打开的位置。 I'd like them to open above, in the main pane where my other code is located.我希望它们在我的其他代码所在的主窗格上方打开。 I currently have to drag them from the bottom pane to the main pane.我目前必须将它们从底部窗格拖到主窗格。

I just noticed that the search window is doing the same...我刚刚注意到搜索 window 也在做同样的事情......

I'm running:我在跑:

 Microsoft Visual Studio Professional 2022
Version 17.2.8
VisualStudio.17.Release.LTSC.17.2/17.2.8+32901.213
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Professional

Visual C++ 2022   00476-80000-00000-AA770
Microsoft Visual C++ 2022

.NET Core Debugging with WSL   1.0
.NET Core Debugging with WSL

ASP.NET and Web Tools 2019   17.2.393.26812
ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0   17.2.393.26812
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools   17.2.393.26812
Azure Functions and Web Jobs Tools

C# Tools   4.2.0-4.22281.5+8d3180e5f00d42f0f0295165f756f368f0cbfa44
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager   6.2.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core)   17.0.0.2218101+885a343b00bcab620a90c1550c37dafd730ce984
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   17.0.62204.01010
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

TypeScript Tools   17.0.10418.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.2.0-4.22281.5+8d3180e5f00d42f0f0295165f756f368f0cbfa44
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   17.1.0-beta.22329.1+702b8e77f5fbfe21e6743324c1750503e02f182d
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

Based on my research, I think the default layout of clicking the code line in the Call Stack windows will not show in the bottom pane of Visual Studio 2022.根据我的研究,我认为单击调用堆栈 windows 中的代码行的默认布局不会显示在 Visual Studio 2022 的底部窗格中。

I think this situation comes from some changes based on the default settings or some extensions you installed.我认为这种情况来自基于默认设置的一些更改或您安装的某些扩展。

First of all, please make sure there isn't any extension that can affect the layout of windows.首先,请确保没有任何扩展可以影响 windows 的布局。

Second, you can follow the below steps to reset the settings of the layout or reset the settings of the total language environment collection settings:其次,您可以按照以下步骤重置布局设置或重置总语言环境集合设置的设置:

Reset the layout settings:重置布局设置:

在此处输入图像描述

Reset the language environment collection settings:重置语言环境集合设置:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

And to make sure not effected by the settings of the async user's settings, please turn off the user settings async :并确保不受异步用户设置的设置影响,请关闭用户设置异步

在此处输入图像描述 7 7

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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