Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense popups should be much wider #53565

Closed
lonix1 opened this issue Jul 5, 2018 · 8 comments
Closed

Intellisense popups should be much wider #53565

lonix1 opened this issue Jul 5, 2018 · 8 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@lonix1
Copy link

lonix1 commented Jul 5, 2018

I'm using the latest versions of vscode and the C# extension.

The IntelliSense popups are very narrow, and wrap text. So for many method signatures, that means the text is broken onto multiple lines, which makes it VERY hard to read, and basically that makes IntelliSense useless.

Please add one or more of the following:

  • Add a setting for "wider IntelliSense popups"
  • Don't wrap
  • Or the best option: allow me to resize the popup horizontally, and automatically remember the width
@vscodebot vscodebot bot added editor editor-wrapping Editor line wrapping issues labels Jul 5, 2018
@jrieken jrieken removed editor editor-wrapping Editor line wrapping issues labels Jul 5, 2018
@joaomoreno joaomoreno removed their assignment Jul 5, 2018
@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jul 15, 2018

Can you provide a screenshot so that its clear whether you are referring to the suggest widget or the parameter hints widget?

If its about the suggest widget, then please look at #29126 and #29757

@ramya-rao-a ramya-rao-a added the info-needed Issue requires more information from poster label Jul 15, 2018
@lonix1
Copy link
Author

lonix1 commented Jul 16, 2018

Sorry unsure how to take screenshots. But it's easy to understand:

The popup shown when I type the dot: e.g. foo.bar. and I expect to see stuff within bar

Also the popup shown when I'm supposed to get IntelliSense for arguments, e.g. when I type the parenthesis in foo.bar.doSomething( and I expect to see args for doSomething

All IntelliSense popups are narrow. During debugging too.

@ramya-rao-a
Copy link
Contributor

So you want to be able to have wider widgets for both?

@lonix1
Copy link
Author

lonix1 commented Jul 16, 2018

When function signatures are long (often are) then it's hard to see what's going on, because the text wraps. So wider popups, or no wrapping.

Put it this way, because of the wrapping, and narrow popups, it's hard to understand what's going on, so the Intellisense is useless. So I often have to hit f12 to go to the definition and read it there.

It should be more like Visual Studio proper, where this is done really well.

@ramya-rao-a
Copy link
Contributor

Improvements to the suggest widget in this regard is being discussed in #29126 and #29757

@joaomoreno Do you have any thoughts for the parameter hints widget in this regard?

@ShenHongFei
Copy link
Contributor

ShenHongFei commented Jul 17, 2018

Here is a workaround by hacking the file "C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\workbench.main.css"

    /* suggest-widget size */
        .monaco-editor .suggest-widget.docs-side {
            width: 1600px;
        }
        .monaco-editor .suggest-widget.docs-side > .details {
            width: 70%;
            max-height: 800px !important;
        }
        .monaco-editor .suggest-widget.docs-side > .tree {
            width: 30%;
            float: left;
        }
        
    /* parameter-hints-widget */
        .editor-widget.parameter-hints-widget.visible {
            max-height: 800px !important;
        }
        .monaco-editor .parameter-hints-widget > .wrapper {
            max-width: 1600px;
        }

    /* editor-hover */
        .monaco-editor-hover .monaco-editor-hover-content {
            max-width: 1600px;
        }

Simply append the code above after the original content of file, and restart VSCode. (Title bar may alert a warning message "Not Supported" and hacked changes would be overridden by updating VSCode)

0062

@joaomoreno
Copy link
Member

joaomoreno commented Jul 17, 2018

@ramya-rao-a Parameter hints needs a good refresh... It also suffers from the same space constraints.

@ramya-rao-a
Copy link
Contributor

In that case, lets use #29126 for the similar discussion for the parameter hints

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants