使用查找參考(或類似方法)搜索符號時,我們只會得到一個結果窗格。因此,搜索另一個符號會替換先前搜索的結果。
是否可以保留以前的結果?
我知道 R# 有這個功能,但使用 R# 不是一個選項,因為 R# 太重了。所以我們不使用它。我可以將此限制擴展到任何與 R# 一樣重的 VS 插件。
基本上,我在問是否有一個輕量級插件可以做到這一點 - 允許保持以前查找參考的結果可用。或者也許有一個 VS 標志?
編輯 1
僅供參考,我使用的 Find References 選項會生成如下窗格:

編輯 2
我從未注意到 Find All References 背景關系選單選項

生成一個帶有Keep Results按鈕的窗格:

What I was doing often is just clicking the References Code Lens hyperlink:

For some reason I thought both produce the same result and clicking the link was faster than opening a popup. But now I can see they produce different result. I wonder why?
uj5u.com熱心網友回復:
這個按鈕呢?“MyClass-References”視窗頂部有一個名為“Keep results”的按鈕。啟用它似乎完全符合您的需要:每個連續的“查找參考”都會打開一個新選項卡。

轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/446875.html
標籤:visual-studio visual-studio-2022
