我有一個 Visual Studio Code 專案,在很多子檔案夾中有很多檔案。當我處理我的代碼時,我需要在所有這些不同的(子)位置之間來回導航,這非常乏味。有沒有辦法保存檔案鏈接以快速訪問它們?
uj5u.com熱心網友回復:
使用擴展HTML 相關鏈接,您可以創建具有檔案相對路徑的檔案,并Related Links
在資源管理器欄中有一個視圖。此視圖可以鎖定到帶有鏈接的檔案。
在作業區根目錄中創建一個檔案:
filelinks.txt
file: subdir1/file1.py file: subdir1/file2.py file: subdir2/file3.json file: subdir2/file4.xml
您可以在檔案路徑的末尾添加行號:
@123
添加以下設定:
"html-related-links.include": { "plaintext": [ { "find": "file:\\s ((?!.*?@). ?)" }, { "find": "file:\\s ((?=.*?@). ?)@(\\d )", "lineNr": "$2" } ] }
查看檔案
filelinks.txt
時,按視圖中的鎖定Related Links
按鈕當您添加或洗掉檔案時,視圖會更新。
filelinks.txt
您可以在鎖定檔案時關閉編輯器。當您要更改串列filelinks.txt
時再次打開。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/476883.html
上一篇:過濾從excel中提取的IP檔案