Where can I enable or implement full-line and file name completion in VSCode?
Asked Answered
B

2

7

In Vim, I love using:

  • Ctrl+X, Ctrl+F to trigger code completion using local file names.
  • Ctrl+X, Ctrl+L to trigger completion of full lines from open files.

I'd like to have the same features in VSCode. A Google and SO search did not show me any extensions that provide this feature.

  1. Is there an VSCode extension that does this?

  2. What is the best way of adding this feature? Should I write my own extension or is there an existing commonly used "intellisense" extension where I easily contribute these features?

Blowfish answered 8/8, 2019 at 9:58 Comment(0)
S
2

I use vscode.vim extension which is a vim emulator for VSCode. It has most of the features of vim, including the completion of full lines from open files with the same keyboard shortcut: Ctrl+X, Ctrl+L.

Stucker answered 20/10, 2021 at 13:40 Comment(1)
That's exactly what's not working somehow the initial ^X doesn't do the expected "completion options", and non of them work, I switch back and forth to vim for all of these...Del
S
1

The extension Path Autocomplete does file name completion.

If you search for autocompletion in the marketplace there are other extensions as well which might provide the line completion that you're looking for.

Schenk answered 2/1, 2020 at 22:23 Comment(1)
Nice extension. Now it looks like it was overtaken by Path Intellisense, but it does the job for me. The completion only works in quoted strings, which is some overhead when editing .bat or .sh files, but it can be lived with.Haplology

© 2022 - 2024 — McMap. All rights reserved.