I've always found the eclipse's automatic close quotes and parenthesis features to be useless. For example hitting on a single " will lead to
"<cursor>"
I don't need the second quote. It's annoying to remove afterward. How to turn this feature off?
Update: I now kept the setting on. If you type another quote " it will break through.
Try Window -> Preferences -> Java -> Editor -> Typing and uncheck the "Strings" checkbox in the "Automatically close" group.
You need to turn this feature off for all editors:
Go to Preferences and in the "type filer text" box type "typing".
Then click on each result and un-check all unwanted automatically close options.
Jump out of the quotes by simply hitting Enter when you are done typing the string contents (at least, in the java editor).
To turn off auto quotes in Titanium Studio, under preferences -> Titanium Studio -> Editors -> uncheck "Auto-close matching character pairs"
You could also hit quote when you want to exit the auto-complete quote. This will put you outside the quote as if you closed it yourself. So this feature doesn't really break the flow of you programing.
The location for similar auto quoting capabilities in PyDev for eclipse:
Windows -> PyDev -> Editor -> Typing -> "Automatic literal closing."
In order to enable pressing enter to exit the quotes check "Enable link on automatic parentheses or literals closing."
Related
Suddenly any Java file I open in Eclipse is being opened in fully-folded mode.
I don't recall changing any settings but presumably I must have hit some special hot key or accidentally clicked someplace to ask for this behavior.
Any clues on how to turn it off? I've tried simply disabling folding but with no success.
Thanks.
Windows -> Preferences -> Java -> Editor -> Folding -> Initially folded elements. Uncheck "members" or hit the "Restore defaults" button.
If you have a similar problem again, try entering a term in the preferences dialog filter box on the upper left. If you enter "folding", you come quite close to the solution already.
I am using Adobe's ColdFusion Builder, an Eclipse-based IDE built on top of Aptana.
All of a sudden, I am getting a type of whitespace marker showing in my Eclipse Editor. I must have accidentally hit a key combination.
Here is a screen dump.
I have already tried "General > Editors > Text Editors > Show whitespace characters" and it is not this. I already have show whitespace characters turned off. If I turn it on, then the Whitespace Characters display over the top of what I am already seeing.
Can anyone tell me how this can be turned off? Most annoying.
Many Thanks
It's under Preferences -> General -> Editors -> Text Editors
Just uncheck 'Show Whitespace Characters':
Did you try Restarting Eclipse? If that didn't work, you might try this http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka11640.html which explains which file to delete to force eclipse to revert to use default settings.
I have done this several times by accidentally hitting some keystrokes.
If you go to Windows/Preferences/General/Keys you will see all the keyboard shortcuts you have.
Mine is set to Control + .
(that's a period by the way) I had to place my cursor inside the document and do it a couple of times to make it work because there is also a keyboard shortcut for Control +
On a Mac it is Cmd +.
Hope that helps.
As described in this question one can have auto complete (Content Assist) appear automatically as you type. There is, however, a problem with this setup.
Eclipse figures it's a good idea to accept the first suggested completion when LOADS of different keys are pressed. Such as space, braces and other stuff you really need to type often without inserting a suggestion.
Any Eclipse wiz out there who knows how to turn this auto insertion off without disabling the suggestions?
Open Window --> Preferences. Type "Content Assist" in the filter, and disable it for your editor (or change activation preferences).
Go to Window -> Preferences -> Java -> Editor -> Content Assist -> Auto Activation -> Auto activation triggers for Java and type ".abcdefghijklmnopqrstuvwxyz" . You can add or remove any characters, on pressing which the auto-complete menu gets triggered.
In your case make sure that you do not have a whitespace, ( or < included in the Auto activation triggers for Java
I'm trying to disable the automatic closing of brackets in Eclipse, and while I've mostly succeeded, I can't stop the editor from inserting a closing parenthesis for a method call. The result is that when I type:
myBool.equals(true);
it inserts a closing parenthesis as soon as I type the opening parenthesis, and what I actually get is:
myBool.equals(true);)
I've disabled all of the auto-complete options in the Preferences -> Java -> Editor -> Typing menu, as well as Preferences -> Java -> Editor -> Content Assist -> Fill method arguments and show guessed arguments. I also disabled the smart insert mode option under the Edit menu. Is there another option somewhere else I need to use to stop Eclipse from doing this?
This is with Eclipse 3.5.2 (Build ID M20100211-1343) in case it matters.
Edited to add: I should also mention that this only happens if I wait for the "intellisense" pop-up with suggested method names to appear after I type the period. If I just continuously type the code without waiting for the suggestion box to appear, the closing parenthesis doesn't get inserted.
I don't know how to disable the method parenthesis auto-complete - so I'm not sure, if you'll be satisfied with my answer. But to avoid ending up with
myBool.equals(true);)
you can actually enable (Parenthesis, [square] and <angle> brackets in the Preferences -> Java -> Editor -> Typing menu. This inserts the parenthesis automatically (which you probably don't want), but you can just continue typing normally, as you would in an editor without "intelligence": Your closing parenthesis will simply overwrite the automatically inserted parenthesis, so you won't end up with );).
If I understand the problem correctly, here is the solution! I had the same problem.
Main Menu | Window | Preferences | <The language you are using> | Editor | Typing
In the section "Automatically close," uncheck the options you don't want.
I don't know if this functionality is new. I just started using Eclipse again and haven't ever used it much.
I found the answer on this stackoverflow page.
As you noticed, it only happens if you wait for the proposals ("intellisense") box to pop up.
The "solution" is to disable proposals under one or both of the following, although doing so is probably more of a hassle because of what you'll be giving up.
Preferences -> Java -> Editor -> Content Assist -> "Insert single proposals automatically"
Preferences -> Java -> Editor -> Content Assist -> Advanced
My normal IDE is Visual Studio, but I'm currently doing some development in Eclipse for the first time. If you press Ctrl-X with text selected in either program, it cuts the text and puts on the clipboard exactly as you'd expect. If press Ctrl-X with no text selected in Visual Studio, it cuts the current line. In Eclipse it is ignored. Is there a way to get Eclipse to use Studio's behavior?
http://code.google.com/p/copycutcurrentline/
I haven't found a way to make Ctrl+X context sensitive, but I did find that you can bind a key to the "Cut Line" command by going to the Window -> Preferences -> General -> Keys dialog. Unfortunately this always cuts the entire line, even when you have only part of it selected. Maybe binding another key to this command will work for you?