go to definition in vscode preview window ruins the edito - visual-studio-code

This annoying window when you go to definition is impossible to disable and has been a blemish on an otherwise first rate code editor.
For some reason it picks up .d.ts files and I get the window even when there is only one definiton. I would love to remove this feature but it does not seem possible.
Below is a screen shot of it picking up a definition and for some reason a react index.d.ts file. So annoying, I can never go to the definition, I've got to click about until the preview window decides it wants to close:

What finally cured it for me was:
"editor.gotoLocation.multiple": "goto"

Related

Atom popup, really annoying

I have no idea what plugin is doing this, but it's incredibly annoying everytime I move mouse mouse to constantly get a popup. When I am coping and pasting code it pops up, and I have to click somewhere else, and it blocks so much of screen. Anyone know what plugin might be doing this?
For me, this was happening because of the atom-ide-datatip package. I went into the settings for that package and unchecked "Show datatip automatically on mouse hover", and checked "Show datatip automatically on cursor stay" as that got in the way for me less.
In my opinion, it would be nice if you could turn off those datatips for certain data types, like int and str. I mostly use this package for the function parameter popups.

How to enable again the tooltip/hint in VSC?

My VSC shows the wavy underlines when something's wrong with my code, but does not display the hint overlay when I hover my mouse on it.
This happens whatever the language used (from CSS to Typescript) and whatever the type of irregularity (e.g. notice, warn, danger)
I'd say that's a setting I may have changed at some point, but can't find which one. Any idea?
More details:
I do have the message displayed in the Problems tab besides to the Terminal, but it forces me to switch from tab to tab ;
I do have other overlays like autocomplete/autosuggest ;
No extensions in my setup could have led to that situation (only a few installed, widely downloaded, nothing fancy or dodgy).
Actual behavior (nothing happens):
Expected behavior (from google images)
Go to File > Preferences > Settings.
Search for 'hover.enabled' (See below photo).
Toggle it.
If your editor still does not pick up the change, close all tabs, close all VSCode windows, and reopen it.
If it's still not working, try uninstalling VSCode and reinstalling it (make sure you don't have setting sync on).
Also, this question has been answered in at least one other place (Disable tooltip hint in Visual Studio Code)

VSCode: I want to remove annoying info message bar

Is there any way to completely remove this message popup or move it to somewhere?
I already know why this message comes, but I do not want to disturb my activity with annoying info popup.
When it pops up it hides the document tab, so I have to close it every single time. (I do not want to know how to fix this particular error message, this screenshot is just an example.)
It's very annoying and I've searched around for a way to remove it, but the answers keep saying how to fix that particular error and not how to hide the popup itself.
Press ESC.
I agree that this is really annoying. VS Code is all about high-speed workflow and not having to interact with anything except your code via keyboard. Everything has key chords, e.g. CTRL-P and CTRL-SHIFT-P. So having to stop what I'm doing, go to the mouse, and dismiss this popup, whenever a background task feels like completing (and not even really then, because the popup actually appears some short time later) just so I can get visual confirmation of which file I'm currently coding in, to refocus my work after being distracted by the same popup, is really awkward. They are in a stupid location and don't even fade away after time like well-behaved toasts.
That said, I think that's really two parts; the distraction, and relatively high workflow cost to dismiss.
It helped me a lot to learn that it can be dismissed quickly and easily with the ESC key. The other half the problem I still haven't solved, but hope that helps you.
In the screenshot it shows trying to validate PHP.
In a VS Code window select File > Preferences > User Settings
An editor will open on the left called Default Settings and on the right with a file called settings.json
In the right side editor you can add settings that will override those found in the left-hand-side one.
Between the braces type:
// Whether php validation is enabled or not.
"php.validate.enable": false,
Then save the document.
VS Code will no longer attempt to validate PHP files.
You can override any of the defaults using this method.
You can use the same technique for each Workspace (or project folder) using File > Preferences > Workspace Settings
You can't disable the alert bar in general as VS Code needs to tell you things and doesn't (thankfully) use modal dialogs to communicate.
Go to File > preferences > settings
Then add this to your user settings
"editor.parameterHints": false
You may want to try adding the line
"extensions.ignoreRecommendations": true
to your VS Code settings file (which you can easily reach with the keystroke (CMD + ,) on a Mac OS X or macOS system.)
Solution: User Preferences > change "editor.parameterHints": true to "editor.parameterHints": false
This will at least remove the obstructive boxes that appear above the cursor.

xcode 5: What's the best way to go back and forth between top of editor and where you were before?

So I've had this question for a really long time. Say:
You're working on line 1000 in the primary editor of xcode,
Then you realize you need to use class ABC but it's not imported. You go to the top of editor and write a line such as import "abc.h"
Then you want to go back to line 1000 and continue your work.
For now I've always need to use my scroll bar to scroll back and forth between line 1 and line 1000, which can easily get me lost. I know that in Eclipse+FDT you can do auto import (ctrl+1 to auto import a class), is there similar feature for xcode? If not, what's the best solution? Thanks in advance.
You can jump between line numbers by typing command + l.
You can navigate to the top of the editor by pressing command-upArrow.
Then to "go back" to line 1000 (where you were), you can press control-command-leftArrow.
Edit: Looks like Xcode does have a "Jump to Line" feature I was unaware of, as per Jonah's answer. You can definitely use that to do what you're looking for.
Xcode has no auto-import feature, nor does it have a feature to jump to a specific line, unfortunately. That may get added in a future release, but I wouldn't bank on it.
Your best bet is getting creative with Xcode's snippet features and its "Jump to Next Placeholder" command — you can create "marks" in your code with snippets and placeholders, jump to the top of the files to add imports, and jump back to your "marks" to keep coding. Create a new snippet that just contains a completion placeholder:
Type <#Mark#> into any text editing application (or even a file in Xcode) and drag the text into the Snippets pane in the right sidebar. This will create a new snippet with just a placeholder called "Mark".
Double-click the snippet to edit its information, changing its Completion Scope to "All".
Give it a completion binding (like "mark") that you'll remember to use.
Then you can create a marker whenever you want (typing "mark", then hitting tab), jump to the top of the file to add an import, and use "Jump to Next Placeholder" (^/ by default) to go back to the placeholder. You can then delete it and keep coding.
Alternatively, if you know vim keybindings and that seems too complicated, you may have some luck with the XVim plugin for Xcode that brings some vim features to its editor. Keep in mind that Xcode plugins are not officially supported, so unofficial support can be taken away at any time.

Eclipse (3.4): how to get Problems to appear automatically if one has errors?

When I build my projects in FlexBuilder, I want to see any errors immediately; I don't want to have to hover or open the Problem pane every time, nor do I want to always leave it open.
Any ideas?
I do not think this is a problem.
As far as I know the Eclipse settings and there is no such.
You can use shortcut keys SHIFT+ALT+Q and press X to fast open the problem panel.