Sublime Text 2 - 在侧栏中显示文件导航

本文翻译自: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和Cyber​​bolt先前的答案都是正确的。

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值