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

Turn off Intellisense by file type and scope #10819

Closed
nathanhammond opened this issue Aug 23, 2016 · 8 comments
Closed

Turn off Intellisense by file type and scope #10819

nathanhammond opened this issue Aug 23, 2016 · 8 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality suggest IntelliSense, Auto Complete

Comments

@nathanhammond
Copy link

  • 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.

@nathanhammond nathanhammond changed the title Customize Intellisense by file type. Turn off Intellisense by file type. Aug 23, 2016
@jrieken jrieken added feature-request Request for new features or functionality editor labels Aug 23, 2016
@jrieken
Copy link
Member

jrieken commented Aug 23, 2016

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

@jrieken jrieken added the suggest IntelliSense, Auto Complete label Aug 23, 2016
@nathanhammond
Copy link
Author

@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).

@zachCatalyst
Copy link

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"]
}

@jrieken jrieken added this to the September 2016 milestone Aug 24, 2016
@jrieken
Copy link
Member

jrieken commented Aug 24, 2016

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...

@nathanhammond
Copy link
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.

@jrieken jrieken changed the title Turn off Intellisense by file type. Turn off Intellisense by file type and scope Sep 9, 2016
@jrieken jrieken removed this from the September 2016 milestone Sep 13, 2016
@jrieken
Copy link
Member

jrieken commented Jan 27, 2017

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

"editor.wordBasedCompletion": true,
"[markdown]": {
  "editor.wordBasedCompletion": false
}

@nathanhammond
Copy link
Author

@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. 😄

@jrieken
Copy link
Member

jrieken commented Jan 31, 2017

dupe of #1657

@jrieken jrieken added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 31, 2017
@jrieken jrieken closed this as completed Jan 31, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality suggest IntelliSense, Auto Complete
Projects
None yet
Development

No branches or pull requests

3 participants