1. 程式人生 > >Visual studio 通過檔名快速定位檔案

Visual studio 通過檔名快速定位檔案

Latest update: in Visual Studio 2010 you can use Ctrl + , to find any elements (Class name/ file name/method name... etc)

Quickly Find/Open a File in Visual Studio

Here is a cool Visual Studio feature that almost nobody knows about. If you want to open up a file in your solution, but can’t be bothered to dig down through your projects and folders to find it, try this,

  1. Click in the Find box in the toolbar,
  2. Type >of followed by a space, then begin the name of the file you are looking for.
  3. An auto-complete drop down will appear as you type filtering all the files in all your projects in your solution. Continue typing until the list is short enough to fine the one you want. Select it and hit enter.
  4. The file will open in the editor.
openfile

Update: After this post made the front page of DotNetKicks, Aaron Lerch wrote a great post on his blog with more things that you can do with the find combo. One thing that is very useful is that with the>, you can issue any command, the alias>of mentioned here is just one of many. For a list of the commands, check out

this MSDN page.

Another useful tip is that Ctrl+D or Ctrl+/ will automatically jump to the find box, so your hands don’t even need to leave your keyboard.

Update: This trick was also mentioned on Just Sayin More Words as a part of hisStupid Visual Studio Trick series. Thanks.

相關推薦

Visual studio 通過檔名快速定位檔案

Latest update: in Visual Studio 2010 you can use Ctrl + , to find any elements (Class name/ file name/method name... etc) Quickly Find/

Visual Studio IDE中快速進行h檔案和cpp檔案切換的巨集

新建一個巨集模組,把以下程式碼複製到模組中儲存,然後選擇“工具->選項->環境->鍵盤”,在顯示命令包含中輸入SourceHeaderJumper找到相應命令,選中後繫結一個快捷鍵即可。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Visual Studio 2013 為C#類檔案新增版權資訊

更改如下目錄下的模版檔案即可實現新增版權資訊功能 C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class\Class.cs (預設路徑)

Visual Studio 生成事件自動拷貝檔案到生成目錄裡

$(ConfigurationName)           當前專案配置的名稱(例如,“Debug|Any CPU”)。 $(OutDir)   &n

Visual Studio建立自己的.dll檔案,並且在其它專案中使用該.dll檔案

1.簡介 看了一些程式碼,發現直接用類名.方法名就呼叫了方法,但是點進方法檢視,卻發現沒有方法體,但是功能卻有,很奇怪。 後來才知道是在專案中添加了自己.dll檔案的引用,然後再程式碼中引入了名稱空間,然後直接可以呼叫了。具體操作如下。 2.首先用 Visual Studio建立一個類庫

Visual Studio編譯出來的pdb檔案有什麼價值

DBG 檔案是可移植可執行 (PE) 格式檔案,該檔案包含 Visual Studio 偵錯程式的 CodeView 格式的除錯資訊(也可能是其他格式,視 DBG 的建立方式而定)。當沒有某些程式碼的源(如庫或 Windows API)時,DBG 檔案允許除錯。DBG 檔案還允許執行 OLE RPC 除錯。

在Windows平臺用visual studio編譯的可執行檔案部署時報:應用程式無法正常啟動0xc000007b(跟DirectX9無關的原因)

最近在做EasyDarwin開源流媒體伺服器Windows版本編譯與部署時發現一個問題,在開發機本機執行都很正常,但是部署到目標機器(未安裝vs等開發環境)時,莫名其妙報出了“應用程式無法正常啟動0xc000007b”的錯誤,網上搜了一遍,大多數解決方案和部落格

Visual studio 2015 C# 快速using,快捷鍵修改

最近開始學習Unity3D引擎,使用的是c#開發,經常要引用其他程式集,但是每次手動打using感覺很麻煩,VS 有個功能是顯示可能的修補程式,快捷鍵是“ctrl+.”,在實際使用的時候大概這個快捷鍵被佔用了,一直沒效果,就嘗試著自己改,方法如下: “工具”->“選項

Unity使用visual studio(VS)儲存檔案指定編碼和行尾

unity 已經逐漸轉向使用 Visual studio編輯器。但是在win下,這個編輯器的預設編碼和行尾,非常尷尬。 每次都需要手動另存為,然後指定行尾。非常煩。後來查到這樣一款VS的外掛,發現還挺好用的,介紹給大家: 外掛的下載地址: http://www.grebu

64位系統Visual Studio通過IIS除錯Web程式報錯:未在本地計算機上註冊"MSDAORA.1"提供程式

64位作業系統除錯程式連線Oracle真心蛋疼無比,包括Oracle和PL/SQL安裝、查詢時也是各種問題,無法登入啊、無法連線啊、無法顯示中文啊等等各種“無法”。Oracle和PL/SQL弄好後除錯程式又是各種“無法”,各種“ORA-06413”什麼的。 好歹通過努力算是

解決Visual Studio編譯出現Moc'ing檔案,系統找不到指定路徑問題

解決Visual Studio編譯出現Moc'ing檔案,系統找不到指定路徑問題 一,問題現狀 一,選擇出問題的工程進行修改QT屬性 選擇工程“HmiDll”後,點選QT->Covert project to Qt Add-in project 三,重新

cmake管理visual studio無法顯示標頭檔案解決方法

原因 我們的跨平臺專案使用cmake來管理的,但是windows下的小夥伴發現在visual studio上標頭檔案沒有載入進來,

通過IDEA快速定位和排除依賴衝突

前言 我們程式設計師在開發的時候經常會遇到各種各樣的 BUG 問題,其中大部分是業務邏輯異常,還有一些是程式碼書寫不規範造成的異常例如:NullPointException(NPE),IndexOutOfBoundsException 等等,其實這些我們都好定位和修復。但是還有一些執行時異常定位起來是特別頭疼

Visual Studio Code 通過 Chrome插件Type Script斷點調試Angular 2

exp against alt bsp true class 設置 com ada 1、 下載Visual Studio Code (https://code.visualstudio.com/) 2、 安裝插件Debugger for chrome 3、 確定ts

通過 Visual Studio 的“代碼度量值”來改進代碼質量

metrics csharp 1.3 image imp com 如何 hello 之間 原文:通過 Visual Studio 的“代碼度量值”來改進代碼質量1 軟件度量值指標 1.1 可維護性指數   表示源代碼的可維護性,數值越高可維護性越好。該值介於0到100之

windows通過Visual Studio Code中配置GO開發環境(轉)

fin gpe def 微軟 sqs oba 安裝插件 包括 ont 一、GO語言安裝 詳情查看:GO語言下載、安裝、配置 二、GoLang插件介紹 對於Visual Studio Code開發工具,有一款優秀的GoLang插件,它的主頁為:https://gith

Visual Studio 2017中,.NET(C#)通過Oracle.ManagedDataAccess來連接Oracle數據庫

成了 lin cnblogs img 輸入 cli acl 程序 選擇 C#如何通過Oracle.ManagedDataAccess來連接Oracle數據庫 1、先創建一個項目,鼠標右擊項目中的引用,再點擊管理NuGet程序包(也可以先下載dll文件,再選添加引用),在搜索

通過Visual Studio 2012 比較SQL Server 數據庫的架構變更

http 隨著 環境 人員 新的 目標 補充 生產 通過 一 需求 隨著公司業務的發展,數據庫實例也逐漸增多,數據庫也會越來越多,有時候我們會發現正式生產數據庫也測試數據庫數據不一致,也有可能是預發布環境下的數據庫與其他數據庫架構不一致,或者,分布式數據庫上線,發現某些不可

使用Visual Studio Code開啟瀏覽器檢視HTML檔案

vscode出來之前一直使用sublime,後者在編寫HTML檔案時可以通過點選滑鼠右鍵,找到open in browser來啟動系統預設瀏覽器,而vscode卻沒有這個功能,除錯和預覽起來比較麻煩。不過可以通過配置tasks.json檔案來解決這個問題。 一、首先按下Ctrl+shift+p輸入

Microsoft Visual Studio除錯技巧(二):Visual Stdio 2010清理除錯生成的快取檔案

使用Visual Stdio 2010程式設計時,會發現硬碟的空閒空間快速不斷減少,這是因為VS2010在除錯時,會生成快取檔案,字尾名iTrace,很佔空間,需要定期手動清理。 IDE中,在“工具→選項→IntelliTrace→高階→IntelliTrace記錄的位置”可以配置儲存i