Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the position of Visual Studio Code hint tooltips?

I'd like to change the position of the Visual Studio Code hint tooltip that is useful, but horribly placed sometimes. (covering the code, jumping all over the place while typing, etc.)

I don't know if it would help, but right now I'd like to fix the hints position to the top right corner of the editor. (Or it could adapt to the situation and be at top right or bottom right depending on where I am typing)

Would look for something like:

hintPanelPositionMode: 'fixed'
hintPanelPositionPlacement: 'right'

or edit some settings somewhere in pseudo CSS style

.hint-panel {position: 'fixed'; top: 0; right: 0}

As a side note: it is somewhat related to what is explained in this question Disable tooltip hint in Visual Studio Code

Is this possible currently?

like image 398
Kev Avatar asked Jun 27 '19 10:06

Kev


People also ask

How do you rearrange VS Code?

On Windows Shift + Alt + F. On Mac Shift + Option + F. On Linux Ctrl + Shift + I.

How do you move cursor in VS Code?

Multi cursor selection To add cursors at arbitrary positions, select a position with your mouse and use Alt+Click (Option+Click on macOS). You can add additional cursors to all occurrences of the current selection with Ctrl+Shift+L.

How do I change the activity bar in VS Code?

The Activity Bar on the left lets you quickly switch between Views. You can also reorder Views by dragging and dropping them on the Activity Bar or remove a View entirely (right click Hide from Activity Bar).


1 Answers

As of now there is no way to move the parameterHints position in VS Code.

There is an open issue on this matter you can find here : https://github.com/Microsoft/vscode/issues/15667

I actually just suggested there something like what you are proposing.
Let's hope they will implement something to fix this soon, because that's really annoying.

In the meantime you can hide it completely by adding to your settings :

"editor.parameterHints.enabled": false

That's not ideal to remove it completely though, up to you.

like image 176
Sylver Avatar answered Oct 19 '22 07:10

Sylver