Skip to content

Turn off Intellisense by file type and scope #10819

Closed

Description

  • VSCode Version: 1.4.0
  • OS Version: OS X 10.11.3

Steps to Reproduce:

  1. Create Markdown file.
  2. Begin typing.
  3. After writing enough you end up getting Intellisense prompts for every new word you write:

screen shot 2016-08-22 at 11 29 45 pm

This makes for a terrible Markdown editing experience.

Activity

  1. changed the title [-]Customize Intellisense by file type. [/-] [+]Turn off Intellisense by file type. [/+] on Aug 23, 2016
  2. added
    feature-request
    on Aug 23, 2016
  3. jrieken commented on Aug 23, 2016

    @jrieken
    Contributor

    Nathan Hammond (@nathanhammond) As a global workaround you can turn off all textual completions with editor.wordBasedCompletion: false

  4. added
    suggest
    on Aug 23, 2016
  5. nathanhammond commented on Aug 23, 2016

    @nathanhammond
    Author

    Johannes Rieken (@jrieken) Indeed, but that cure is worse than the malady since the majority of the time I do want (and benefit tremendously) from textual completions.

    So rather than do that I simply moved my markdown editing into a different tool (also suboptimal).

  6. zachCatalyst commented on Aug 24, 2016

    @zachCatalyst

    I've notice the same behaviour editing markdown that actually drove me to another tool (just for Markdown). Often I'll have a short todo list or notes in a plain text file this will happen to also, less often / irritating but similar.

    I would love to see something like:

    // blanket disabled for everything
    editor.wordBasedCompletion: false

    // blanket enabled for everything
    editor.wordBasedCompletion: true

    // on for everything except for file types in the exclude list.
    editor.wordBasedCompletion: {
    exclude: [".md", ".txt", ".text"]
    }

    // off for everything except for file types in the inclusion list.
    editor.wordBasedCompletion: {
    include: [".js", ".cs"]
    }

  7. jrieken commented on Aug 24, 2016

    @jrieken
    Contributor

    Understood - I will tackle this in September. With it we should also think about configuring word based completions wrt strings and comments. Tho not interesting for markdown folks like or hate it...

  8. nathanhammond commented on Aug 24, 2016

    @nathanhammond
    Author

    A "grand unified plan" of configuring it would be fantastic and I'm in no particular rush. Blacklists or whitelists at a global level provide some alleviation as a quick fix, but if instead everything were context aware you could provided completions inside of a Markdown code block that is annotated for a language.

    ```javascript
    setTimeout(...

    So your proposal for taking context into account is valuable in many scenarios. So please don't feel unnecessarily pressured into the "quick fix" solution and take the time to design the solution that you actually want.

  9. changed the title [-]Turn off Intellisense by file type. [/-] [+]Turn off Intellisense by file type and scope[/+] on Sep 9, 2016
  10. jrieken commented on Jan 27, 2017

    @jrieken
    Contributor

    Nathan Hammond (@nathanhammond) fyi with the January release we have enabled language specific settings, so you could have:

    "editor.wordBasedCompletion": true,
    "[markdown]": {
      "editor.wordBasedCompletion": false
    }
  11. nathanhammond commented on Jan 31, 2017

    @nathanhammond
    Author

    Johannes Rieken (@jrieken) Thanks for the ping, that does make life far smoother. The language specific settings actually work as a simple but elegant design. Regardless of how it is implemented now (maybe as a file type switch?) it allows for a future in which you detect the scope.

    Given you're closing things as duplicates of this issue I'll leave it open as a tracking issue for the thoughts you have on this. 😄

  12. jrieken commented on Jan 31, 2017

    @jrieken
    Contributor

    dupe of #1657

  13. added
    *duplicate
    on Jan 31, 2017
  14. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatefeature-requestsuggest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions