Visual Studio Code: How not to show suggestions on space? - visual-studio-code

So anytime I type space it brings up suggestions, which causes problems when I type space at the end of a line (just because i like having a little space there. This way cursor is at some distance from code when i click at the end of a line, it's easier to see code, it's less cluttered), and press enter. It brings up suggestions menu and insert the first thing from there, while i just want to insert a new line character.
I also need it to show suggestions when I'm typing, but only when I type a non whitespace character, so I can't set it to not bring up suggestions on typing.
I also want to accept suggestions on enter, so I can't turn this off either.
So I'm stuck with wanting suggestions on typing, but not on space, is there a way to somehow exclude space from suggestion triggers?

You can customize how you want to display it, this feature is called IntelliSense.
Go to File > Preferences > Keyboard Shortcuts (MacOs Code > Preferences > Keyboard Shortcuts)
and you can set the new key on:
list.toggleExpand
notification.toggle
if you want advance settings, go to keybindings.json
more info:
https://code.visualstudio.com/docs/editor/intellisense
https://code.visualstudio.com/docs/getstarted/keybindings

I think i've found a solution: turn off Suggest on Trigger Characters option.
This way it doesn't bring up IntelliSense on space or dot or anything else, but it still brings it up when i'm typing ordinary characters

Related

Indenting multiple lines: Keyboard shortcut

I think I was told once how to indent an entire collection of lines quickly and at the same time with a keyboard shortcut in Eclipse (I'm using Juno with PyDev-Python). Does anyone know of such a shortcut? I can't seem to dig anything up.
Thanks.
Just highlight the lines and push tab.
Select the lines and Press TAB - for Right
Select the lines and Press SHIFT+TAB - for Left
Select all, then do Ctrl+I.
The advantage of this method over selecting some lines, then pressing Tab, is that it is much faster to do Ctrl+A then Ctrl+I, than tabbing lines at a time. I do automatic indenting all the time, it's basically in my reflex. Like saving.
A quick googling would have helped you faster.

How do I turn off Tab and New Line markers in Eclipse?

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.

Eclipse CTRL+A, CTRL+E go to beginning go to end of line

I searched and was very surprised that I can't find a possibility to make CTRL+A, CTRL+E work. So I can jump to the beginning or end of the line. I'm working on a Mac and don't have Pos1 or Home Button on my keyboard.
I'm pretty used to it, because everywhere I need it, it exists, not so in eclipse.
When you set custom keys in eclipse - just make sure that the keys you assign are not already assigned to different actions.
e.g.
enter "ctrl+a" into the filter field and "unbind" the shortcut from all actions that you don't need
select action you want ("line start"), put cursor in "Binding" field and click Ctrl+A
Enter command + -->). this will work.
Another option I found was:
going to preferences
to general -> Editors -> keys
from Scheme select Emacs
Sorry I tried to post a pic, but apparently I need more points...
Home (goes to beginning of the line),End(goes to end of the line) works for me )

Problem with eclipse text editor

Does anyone ever have problem like this??
The "Enter" , "Tab" , and "space" character is shown .. and I don't know how to fix it. I have tried to restart the Eclipse, change the Android SDK, and also restart my computer. but nothing seems to work. everything stays like that. It's not a relly big problem, but it feels really annoying to see all those character floating around.
anyone have solution?
In the preferences, go to General > Editors > Text Editors and disable "Show whitespace characters". I'm sure you pressed some kind of keyboard shortcut to enable it in the first place.

Is it possible to dock the "Find/Replace" window in Eclipse?

I could have sworn I saw it once before in a screencast where someone had the find/replace window docked in their Eclipse environment.
However looking through the list of options in "Window > Show" the closest thing I can find is the Search window.
I find that I use it quite a bit and with larger monitors these days I figure I could afford to have it open in my perspective all the time.
Is this possible?
Thanks.
One poor-man's workaround is to dock a view that you don't need in a part of Eclipse where you want the find/replace view and then place the find/replace dialog on top of that like this:
Clearly this is a huge kludge but it does work.
I am not sure about that, since Fast views are:
icons allowing users to quickly display different views that have been created as fast views
And the search/replace is a Dialog, not a View..
(source: bpsite.net)
(That Dialog box is not like Views, which support editors, also have their own menus. Some views also have their own toolbars.)
The help page mentions:
Fast views are hidden views that can be quickly opened and closed. They work like other views except they do not take up space in your Workbench window.
This might not be an exact answer for the question. But this works like a charm.
Press ctrl + j and keep typing...
Use ctrl + k to go on
Use shift key wherever required.
Use Edit > Incremental Find Next (Ctrl+J) or Edit > Incremental Find Previous (Ctrl+Shift+J) to enter the incremental find mode, and start typing the string to match. Matches are found incrementally as you type. The search string is shown in the status line. Press Ctrl+J or Ctrl+Shift+J to go to the next or previous match. Press Enter or Esc to exit incremental find mode.