Sublime Text 2 - 自动完成/从其他文件建议
假设我有 2 个文件:
foo
bar
baz
如果
123
456
f[want autocomplete here]
我在第二个文件中输入 1
,Sublime 会建议 123
。但如果我输入 f
它不会提示任何内容。我希望它像我在第一个文件中一样建议 foo
。
看起来这应该很简单(每个缓冲区都可以自动完成,因此搜索所有缓冲区不会那么困难),但我一直无法找到执行此操作的插件。
Say I have 2 files:
foo
bar
baz
and
123
456
f[want autocomplete here]
If I type 1
in the 2nd file, Sublime will suggest 123
. But if I type f
it wont suggest anything. I want it to suggest foo
like it would if I were inside the first file.
It seems like this should be simple (each buffer can autocomplete, so searching all of them can't be so hard) but I haven't been able to find a plugin that does this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我实现了相同的想法并将其发布为包,以便可以使用包控制直接从 Sublime 中安装:
按 ctrl+shift+p(Windows、Linux)或 cmd+shift+p(OS X)打开命令调色板。开始输入“安装”以选择“包控制:安装包”,然后搜索 AllAutocomplete 并选择它。
代码在这里: https://github.com/alienhard/SublimeAllAutocomplete
I've implemented the same idea and published it as a package so it can be installed directly from within Sublime with Package Control:
Press ctrl+shift+p (Windows, Linux) or cmd+shift+p (OS X) to open the Command Pallete. Start typing 'install' to select 'Package Control: Install Package', then search for AllAutocomplete and select it.
Code is here: https://github.com/alienhard/SublimeAllAutocomplete
我写了一个插件来执行此操作:
I wrote a plugin that does this: