且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VS Code 查找结果面板

更新时间:2022-03-29 23:53:51

更新:参见 Visual Studio 代码 - 如何复制搜索结果? 新的搜索编辑器使查看和复制结果更加用户友好.

Update: see Visual studio code - how to copy search results? The new search editor makes seeing and copying the results much more user-friendly.

现在您只需将搜索视图拖到面板中即可.

And now you can just drag the Search view into the Panel.

v1.21 帮助解决了这个问题.请参阅横向面板搜索

v1.21 has helped this problem. See Horizontal panel search

//预览:控制搜索是否显示为视图中的视图侧边栏或作为面板区域中的面板以获得更多水平空间.面板中的下一个版本搜索将改进水平布局和这将不再是预览.

// Preview: controls if the search will be shown as a view in the sidebar or as a panel in the panel area for more horizontal space. Next release search in panel will have improved horizontal layout and this will no longer be a preview.

 "search.location": "panel",

我认为您还不能打印这些结果,但至少视图得到了很大改善.我不认为你的意思实际上是打印"但无论如何...

I don't think you can print those results yet but at least the view is much improved. I don't think you meant actually "print" but nevertheless...

在原始答案之后添加的功能:::

Functionality added after the original answer:::

您现在可以右键单击搜索结果中的任意位置并选择复制全部";将所有搜索结果放入剪贴板.该上下文菜单还有一些其他选项.

You can now right-click anywhere in the search results and select "Copy All" to get all the search results into the clipboard. That context menu has some other options as well.