ChristianKohler / NpmIntellisense

Visual Studio Code plugin that autocompletes npm modules in import statements
MIT License
156 stars 45 forks source link

Inserting suggestion on dot key #12

Closed MichalLytek closed 8 years ago

MichalLytek commented 8 years ago

When I want to add import/require from my own files, I use relative path starting with .. And the problem is that I got intellisense immediately when I'm opening quotes (" ") and when I press the . key, it enters the first suggestion.

I would be nice to have an option to set accepting suggestion only on enter or tab press

third774 commented 8 years ago

This is supremely annoying, especially working with Angular2.

ChristianKohler commented 8 years ago

Look at https://github.com/ChristianKohler/PathIntellisense/issues/9

the solution is to unbind .. Add this to keybindings.json: { "key": ".", "command": "" }

redstrike commented 8 years ago

@ChristianKohler

`the solution is to unbind .. Add this to keybindings.json:
 "key": ".", "command": "" }

I think the solution for this issue should be included in the user guide. It's lucky for me that there aren't many issues in this project so that I can browse the closed issues. In fact, it's difficult to search for a similar issue on Github. Even the search engine is smart enough, it still difficult to choose correct keywords to search.

hfahrudin commented 6 years ago

it still didnt unbind it sadly

verysame commented 6 years ago

So, from my understanding adding { "key": ".", "command": "" } should allow me to insert images to html files and VSC should add the filename and the file extension as well, i.e. filename.jpg If that's the case, is still not working, I only get the filename but not the extension.

ghSP commented 5 years ago

I believe you can unbind this by setting editor.acceptSuggestionOnCommitCharacter to false

samgermain commented 3 years ago

Here's how to find where keybindings.json is located