Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...