简体   繁体   English

我将如何在Sublime文本中创建第二个侧边栏

[英]How would i create a second sidebar in Sublime text

What I want is to have a second sidebar that will show me three lines of the text of the file, which will save me having to open it. 我想要的是拥有第二个侧边栏,该侧边栏将向我显示文件文本的三行,这将使我不必打开它。

This is a feature that Evernote has: Evernote具有以下功能:

Evernote片段功能

The area pointing to "snippets" is the feature that i want. 指向“代码段”的区域是我想要的功能。 I would find it so helpful if Sublime had this. 如果Sublime拥有此功能,我会觉得很有帮助。

I have searched and I am fairly sure this doesnt exist. 我已经搜索过,并且我相当确定这不存在。 So I am wanting to make it myself. 所以我想自己做。 So here are my questions; 所以这是我的问题;

  1. Which file ultimately governs the existence of the existing sidebar? 哪个文件最终决定了现有边栏的存在?
  2. Would this be a package or a plugin? 这是软件包还是插件? (Im guessing package), and if it is a package, would it be default or user? (我在猜测软件包),如果是软件包,它将是默认还是用户?
  3. Is it actually possible to have a second sidebar (or similar), and if so how can i get it to sit to the right of the existing sidebar? 实际上是否可能有第二个侧边栏(或类似的侧边栏),如果是这样,我如何使其位于现有侧边栏的右侧?

Any other advice on how to go about creating this would be much appreciated. 任何其他有关如何创建此建议的建议将不胜感激。 Thank you. 谢谢。

I'm not sure if creating another sidebar is possible nor have I seen any package to do so. 我不确定是否可以创建另一个侧边栏,也不确定是否有任何软件包可以这样做。

On the other hand, you can do alt+shift+2(set_layout) I don't know what the buttons are for OSX. 另一方面,您可以执行alt + shift + 2(set_layout),我不知道OSX的按钮是什么。 You can find it in Default keymap settings. 您可以在默认键盘映射设置中找到它。 You can copy that to user keymap, edit the arguments values and bind it to whatever keys you want. 您可以将其复制到用户键盘映射,编辑参数值,并将其绑定到所需的任何键。

What it will do, is create another window in sublime where you can open other tab with data you wish to have in there. 它会做的是在sublime中创建另一个窗口,您可以在其中打开其他选项卡,其中包含您想要的数据。

Example: 例: 在此处输入图片说明

You can also use alt+shift+number, to create more than 2 windows with up to 4. If you wish to do the windows in horizontal position, you can use number 8 and number 9. 您也可以使用alt + shift + number来创建最多2个窗口(最多4个)。如果希望水平放置窗口,则可以使用数字8和9。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM