These days I'm programming in Python with sublime text and I'm pretty annoyed because I have installed the "SublimeCodeIntel" and "auto-complete", when I write a number, it suggest me some number that I have in the opened files.
there's any way to disable it? I mean, how can I configure the suggestion to NOT appear the ones that start with a number?
Hope someone could help me out! :)
Edit: forget auto-complete. I mean that when I write, for example, "1", sublime suggest me "100" as when I write "p" it suggest me "print". So, Sublime is suggesting me numbers, any way to disable it?
You cannot disable auto complete especially for numericals.
Auto complete can be disabled with the auto_complete setting. To disable it, add this line to Preferences/File Settings - User:
"auto_complete": false
If auto-complete is disabled then, the pop-up can be seen by pressing Ctrl+Space, pressing again will select the next option.
Related
as the title says I'm looking for a way to remove the autoselect code after autocomplete. Currently, the only way to remove the autoselected line is either pressing ESC key or clicking anywhere else. And it's currently giving me issues because it's quite annoying.
I've been searching for a solution for about 3 days and it's either I'm doing it wrong or I don't really know what the issue exactly is... Here's a picture of my issue
As you see in the picture, the code is autoselected/highlighted right after autocomplete and as said I really need help because it's turning annoying.
Thanks in advance.
Set Snippets Prevent Quick Suggestions to false, in text editor > suggestions
I use atom for typing my Latex documents. One feature I really loved is auto complete suggestions.
I recently came across sublime which is comparatively fast and loved it. Even though it has auto complete feature, it doesn't show the suggestions while typing, i.e., one have to press tab to cycle the auto complete suggestions and doesn't display as in atom. I want to know if there is a way to display the auto complete suggestions in real time similar to atom?
This might depend on which package is handling the autocompletion. Usually there is a customizable setting for autocomplete triggers:
https://forum.sublimetext.com/t/completion-triggers/13139/2
https://forum.sublimetext.com/t/auto-complete-triggers/3751/4
"auto_complete_triggers": [
{ "characters": " ", "selector": "source.python"}
]
I found the answer while looking at https://github.com/Zinggi/DictionaryAutoComplete.
So, adding "auto_complete_selector": "source, text" to settings-user file does the trick
In Kate text editor, one can auto complete using either the Tab or the Enter key.
I find auto-completion with the Enter key disruptive, because often you really do mean what you say, and want to go to a new line. Who knew.
How can I disable only the Enter key auto-completion without removing the Tab auto-completion?
You CAN'T do that.
From https://bugs.kde.org/show_bug.cgi?id=316413:
Sorry, but auto-complete really works ok the way it is. If we alter that behavior, we will get many more reports about that than with the current way.
And then:
You can deactivate the auto completion in the settings. Then you can invoke it manually. If that doesn't help, then yes, Kate is perhaps not the best choice, sorry.
So it seems, from the developers' own mouth, that Enter can't be turned off. You can turn off autocomplete as a whole, or if you don't like that, you can find another text editor. Or you can edit the source code yourself, after all it's Open Source.
The developers like it as it is, and have no intention of making the behavior configurable.
I've seen a workaround in this article that works for me:
go to: Settings->Configure Keyboard Shortcuts. Then change the Action:
"Insert Smart Newline to Enter instead of Shift+Enter.
Coming from Visual Studio and starting a project in Java, I realized I couldn't cope with having to press ctrl+space to have the autocomplete panel show up. An easy workaround was to set all keyboard characters to be trigger characters for autocompletion.
My only problem is that, when presented with autocomplete suggestions, a single press on the space bar will write the first proposition. In situations where I'm happy with the suggestions, that's just fine. In situations where I actually want to use what I wrote down initially, I have to press 'escape' first to remove the autocomplete panel before I can press 'space' safely.
Netbeans doesn't use the space bar as a validating key for autocompletion (only 'enter' does that) and I like that behavior. Any way to replicate it in Eclipse?
Thanks in advance for your answers!
EDIT: I should have mentioned I'm using Eclipse on the Mac.
Guillaume
I have the same problem with Eclipse Indigo on Windows XP actually. Coming from intellij idea, I also felt the need to set the whole keyboard to trigger auto-complete.
A quick proof that SPACE key does accept suggestions : type inte on a new line. If the auto-complete menu shows, press SPACE. It goes for Integer.
If anyone knows how to set the SPACE key to "ignore suggestions", it would be great, because the escape key on my keyboard is also too far away :)
Thanks
Edit : actually the best would be to have only the ENTER key validating, because ';' and '(' also seem to validate
I just tried to reproduce your behavior, but couldn't. Here is the configuration I have (and the steps I have done to reproduce):
I have installed Indigo (current version of Eclipse, version number 3.7).
I did not change any configuration there, this is what is the default:
Under Window > Preferences > Java > Editor > Content Assist, I have the following settings:
Completion inserts (instead of overwrite)
Insert single proposal automatically (which is ok most of the time)
not insert common prefix automatically
I have a simple class, go down to a method, and do the following steps:
Enter this.no and wait some time. Sometimes I have to press CTRL + SPACE, sometimes not.
Proposal pops up which includes notify and notifyAll.
I press SPACE and a space is inserted in the text, the autocomplete suggestions are closed without inserting anything.
I do not know if older versions of eclipse have the same behavior.
Textmate & Notepad++ can complete all words which appeared in the current document, how to enable this in Coda?
e.d. I have typed "some_text" in a document, then when I type "some_" then press ESC - "some_text" should appear in the suggestions list.
Auto-complete in Coda is automatically enabled, and as far as I know, it can't be disabled. It is a lot like Dreamweaver with auto-complete, it will show you your starting tags and should automatically close some tags.
As for words, I'm pretty sure that it doesn't do that.