本文翻譯自:Sublime Text 2 - Show file navigation in sidebar
I just switched to Sublime Text as my new editor. 我剛剛切換到Sublime Text作爲我的新編輯器。 If I open the sidebar it shows the opening file, but what I want is a file navigation sidebar, is it possible to change that without downloading plugins? 如果我打開側邊欄它會顯示打開文件,但我想要的是文件導航側邊欄,是否可以在不下載插件的情況下更改它?
#1樓
參考:https://stackoom.com/question/oKbH/Sublime-Text-在側欄中顯示文件導航
#2樓
You have to add a folder to the Sublime Text window in order to navigate via the sidebar. 您必須將文件夾添加到Sublime Text窗口才能通過側邊欄進行導航。 Go to File -> Open Folder...
and select the highest directory you want to be able to navigate. 轉到File -> Open Folder...
然後選擇您希望能夠導航的最高目錄。
Also, 'View -> Sidebar -> Show Sidebar' if it still doesn't show. 此外,“查看 - >側邊欄 - >顯示側邊欄”,如果它仍然沒有顯示。 In the new version, there is only an 'open' menu and no separate option for opening a folder. 在新版本中,只有一個“打開”菜單,沒有用於打開文件夾的單獨選項。
#3樓
You may drag'n'drop your folder to Side bar. 您可以將文件夾拖放到側欄。 To enable Side bar you should do View -> Side bar -> show opened files. 要啓用側欄,您應該執行查看 - >側欄 - >顯示已打開的文件。 You'll got opened files (tabs) tree and folder structure at Side bar. 您將在側欄中打開文件(選項卡)樹和文件夾結構。
#4樓
Both of the previous answers from Matt York and Cyberbolt are right. Matt York和Cyberbolt先前的答案都是正確的。
Basic idea is here that you want to get some kind of File explorer in Sublime. 基本的想法是,你想在Sublime中獲得某種文件瀏覽器 。
Approach: 做法:
1) With File -> New Folder -> Click on Desired folder and Hit Open
you will get new popup window in sublime which for me is very annoying 1)使用File -> New Folder -> Click on Desired folder and Hit Open
你將獲得崇高的新彈出窗口,這對我來說非常煩人
2) I use second option which is drag'n'drop from nautilus (aka Files) window. 2)我使用第二個選項,即從nautilus(aka Files)窗口拖放。 Simply drag'n'drop your file you want to explore from nautilus to sublime sidebar
. 只需drag'n'drop your file you want to explore from nautilus to sublime sidebar
。 That way you stay in the same window and everything is cool. 這樣你就可以呆在同一個窗口,一切都很酷。
Don't forget to enable View -> Sidebar -> Show Sidebar and drag'n'drop there from nautilus and of course run it with root privleges
. 不要忘記啓用View - > Sidebar - > Show Sidebar並從nautilus root privleges
那裏,當然也可以使用root privleges
運行它。 It works like charm 它就像魅力一樣
#5樓
使用Ctrl + 0將焦點更改爲側邊欄。
#6樓
See this plugin 看到這個插件
https://github.com/stvkoch/sublime-text-go-to-file https://github.com/stvkoch/sublime-text-go-to-file
This version, while not merge with fork branch, has more power to find files basead on class name. 這個版本雖然沒有與fork分支合併,但它有更多的功能來查找類名的basead文件。
Try: 嘗試:
select namespace and click alt+d click on word of class name and click alt+d click on path of template file and click alt+d 選擇命名空間並單擊alt + d單擊類名單詞,然後單擊alt + d單擊模板文件的路徑,然後單擊alt + d