简体   繁体   English

Visual Studio 2019 搜索历史不在“表”中

[英]Visual Studio 2019 Search History not in 'table'

Alright so I recently did a clean install of visual studio and one thing changed from last time.好吧,所以我最近对 Visual Studio 进行了全新安装,并且与上次相比发生了变化。

With vs2019, I think, came the different looking "Search History".我认为,对于 vs2019,出现了外观不同的“搜索历史”。 Here are two screens of what exactly I mean with that.这是我的意思的两个屏幕。 New looking history and here is the old one新的历史,这是旧的

I'm just not sure why now I only get the old one.我只是不知道为什么现在我只得到旧的。 I found out that the new one only appears with CTRL + SHIFT + F and the older one with regular CTRL + F. Is there are way so that the default CTRL + F window displays the same output window?我发现新的只有 CTRL + SHIFT + F 和旧的 CTRL + F。有没有办法让默认的 CTRL + F window 显示相同的 output Z05B8C74CBD96FBF2DE4ZC1A3524 (the newest one) (最新的)

At first I didn't really like it that much, but now I prefer it.一开始我不是很喜欢它,但现在我更喜欢它。 I'm running VS2019 Version 16.5.2.我正在运行 VS2019 版本 16.5.2。

Edit: And also, this is where I used to get the table version if anyone was wondering.编辑:而且,如果有人想知道,这是我用来获取表格版本的地方。 prnt.sc/rue85b Now it's just this old text thing.现在它只是这个旧文本。

In the "Find in Files" tool window, ensure "Find results table" is selected, not "Find results 1 window":在“在文件中查找”工具 window 中,确保选择“查找结果表”,而不是“查找结果 1 窗口”:

在此处输入图像描述

You can customize the keyboard shortcut.您可以自定义键盘快捷键。

  1. Go to Tools\Options Go 到工具\选项
  2. Navigate to Environment\Keyboard导航到环境\键盘
  3. Under "Show commands containing", type Edit.FindinFiles在“显示包含的命令”下,键入 Edit.FidinFiles
  4. Under "Press shortcut keys", press the desired keyboard shortcut (ie in your case Ctrl+F)在“按快捷键”下,按所需的键盘快捷键(即在您的情况下为 Ctrl+F)
  5. Click Assign and then OK单击分配,然后单击确定

See screenshot here在此处查看屏幕截图

  1. Tools > Options > Environment > Preview Features > Check "Use Previous Find in Files"工具 > 选项 > 环境 > 预览功能 > 选中“使用以前在文件中查找”
  2. Ctrl+Shift+F > Open Result options > Select "Find results table" Ctrl+Shift+F > 打开结果选项 > Select “查找结果表”
  3. Close the Find and Replace tool window and revert the aforementioned "Use Previous Find in Files" setting (optional)关闭查找和替换工具 window 并恢复前面提到的“在文件中使用以前的查找”设置(可选)
  4. Perform a search (either Find in Files or simply through the standard Ctrl+F find prompt) Your results will then appear in the advanced tabular "Find results table" window.执行搜索(在文件中查找或仅通过标准 Ctrl+F 查找提示)您的结果将出现在高级表格“查找结果表”window 中。

Presumably this setting is also found elsewhere but I haven't been able to find it without turning off the Find in Files preview feature.大概这个设置也可以在其他地方找到,但如果不关闭“在文件中查找”预览功能,我就无法找到它。

https://stackoverflow.com/a/63789479 https://stackoverflow.com/a/63789479

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

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