question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to disable IntelliSense?

See original GitHub issue

In my project, IntelliSense seems to obscure a lot of the code in the editor, similar to what is described in this issue - https://github.com/microsoft/monaco-editor/issues/344#issue-204285250

Can I disable IntelliSense entirely? I went through IEditorOptions in the API, but didn’t find anything that I could use.

I also looked at the VSCode docs on Customizing IntelliSense, but not sure if/how they relate to Monaco Editor.

On further digging - I tried the config from VSCode docs in the Monaco Playground, and it seems like intellisense is turned off -

var editor = monaco.editor.create(document.getElementById("container"), {
	value: jsCode,
	language: "javascript",
    quickSuggestions: {
         "other": false,
        "comments": false,
        "strings": false
    },
    parameterHints: {
        enabled: false
    },
    ordBasedSuggestions: false,
    suggestOnTriggerCharacters: false,
    acceptSuggestionOnEnter: "off",
    tabCompletion: "off",
    wordBasedSuggestions: false
});

I just took the config described in the “Customizing IntelliSense” section to try this out, but is there another command that disables IntelliSense entirely all at once, instead of using individual properties?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
JoshuaKGoldbergcommented, Jan 31, 2020

🤔 features: ["!suggest"] did not work for me. But, this very upsetting CSS snippet did:

.monaco-editor .editor-widget {
  display: none !important;
  visibility: hidden !important;
}

(!important was necessary to override the inline styles added by Monaco)

It’d be swell if ISuggestOptions could have an enabled?: boolean added to it.

My use case is pretty common with education platforms where surfacing additional information is surprisingly harmful to the experience of new users. Other example: https://github.com/freeCodeCamp/learn/issues/88

1reaction
mattgodboltcommented, Nov 21, 2019

In my use case just setting quickSuggestions to false is enough to make all of intellisense go away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable or pause default IntelliSense for C/C++
Option 1: Disable IntelliSense for a specific solution ... Exit the IDE. Delete NCB existing NCB file(s), and create two, read-only, zero-length NCB...
Read more >
How do do I disable suggestions in Visual Studio C++?
From Visual Studio, select “Tools” > “Options“. · Select “Text Editor” in the left pane. · Select the language you are using (C#,...
Read more >
Visual Studio: How to Turn Off Autocomplete - Technipages
Option 2 – Disable Completely · From Visual Studio, select “Tools” > “Options“. · Select “Text Editor” in the left pane. · Select...
Read more >
How to disable IntelliSense in VS Code for Markdown?
IntelliSense suggestions in VS Code can be configured globally or per each workspace and as of 1.9 per file-type (language), using the editor....
Read more >
Disable Intellisense Autocorrect - Visual Studio Feedback
> Intellisense (incorrectly) changes your code sometimes as you are typing. Some users say the cause it that you are pressing space before...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found