Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
499 views
in Technique[技术] by (71.8m points)

sublimetext - Sublime Text 2 - Auto-complete/suggest from other files

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.

question from:https://stackoverflow.com/questions/9081846/sublime-text-2-auto-complete-suggest-from-other-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...