Questions tagged [vscode]

Questions about VS Code, in particular the Vim and NeoVim extensions for VS Code

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Is there a Neovim plugin that can parse a .vscode directory and set up the LSP client accordingly?

I cloned a project off GitHub recently which comes with a VSCode configuration for telling clangd where all the headers are, providing run configurations etc. Is there an existing plugin I can ...
wallefan's user avatar
  • 171
2 votes
2 answers
87 views

Why does my Vim/VsCodeVim requires double tapping '^' to go to the first character of the line?

Why does my Vim requires double tapping ^ to go to the first character of the line instead of a single tap, and is there anything I can do to change it? I'm on Windows 10 with a the Vim plugin '...
Qwert Yuiop's user avatar
0 votes
1 answer
37 views

How do I append every single occurance of a phrase with that phrase plus an incremental number?

I am using the Vim extension in VSCode. I want to append every occurrence of a phrase, for example: breadCrumbLabel In my codebase with the instance number. The first occurrence would have to be: ...
Kandala Sreekar's user avatar
1 vote
2 answers
38 views

Switch modes without losing the selection

I use VsCode with Neovim extension. Sometimes I have to add different quotations or underscores or edit parentheses around a word but the words or marks around them aren't always straightforward or ...
mpower's user avatar
  • 111
0 votes
1 answer
1k views

How can I easily configure my Neovim to provide a vs code like javascript, html & CSS autocomplete, intellisence & highlighting?

I am new to Neovim & overwhelmed by the extremely huge number of ways to configure it, which take hours & have no surity of working for me, as I am using Neovim on my Android via termux (for ...
Ayush Samantaray's user avatar
1 vote
2 answers
625 views

Using VSCode key bindings inside Vim

Is there any way to use VS Code key bindings in Vim? I really like the VSCode linux key bindings, but would like to give a try to Vim without losing productivity.
Sb. R's user avatar
  • 19
2 votes
4 answers
619 views

Is there a Project Manager extension like VsCode in Vim?

I need a project manager like VsCode in Vim. This link is the extention that I use in VsCode. https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager In this extension I can ...
mohamadi_arch's user avatar
0 votes
1 answer
232 views

How to repeat a command in command-line mode

I need to repeat the delete of matching lines in vscode-vim. Unfortunately the g has not been implemented yet, so I'm trying to figure out a way to repeat the same change in command-line mode using ...
Antonio Santoro's user avatar
0 votes
2 answers
1k views

How to replace text with clipboard content in VsCode using VsCodeVim?

I am using vscode + vim. Consider a common scenario where I have to yank/delete some text from one place and replace it with some text anywhere else. But as I need to replace I have to first delete ...
Maheer Ali's user avatar
2 votes
1 answer
367 views

What does underscore cursor (caret?) and half cursor (caret?) mean?

I noticed different styles. But I cannot relate to what I typed, maybe because I have many missed key strokes.
samuelnihoul's user avatar
1 vote
0 answers
301 views

How to hover on linting or other icons in editor using Vim?

So I use VsCode with Vim emulation. I use linting and helpers when I code. I would like to know how I can hover over linting with Vim so those help messages appear or just how to work with hovering ...
Audrius's user avatar
  • 11
0 votes
0 answers
32 views

How to map a kebind to a operator?

I am using nerd-commenter which uses the operator series gcc to toggle comment. I would like to map Ctrl/ to gcc because I prefer the VsCode mapping. So is there any way to map Ctrl/ to gcc?
muppi090909's user avatar
1 vote
1 answer
280 views

Why "vie" selects the entired file?

I'm trying to type "vie", "cie" and "die", and their behaviors are both operating on the entired file, i.e. "vie" selects the whole file text, "cie" ...
Mactarvish's user avatar
0 votes
0 answers
550 views

Is there any way to list classes, fields, and functions, in C/CPP files using vim, ccls, and coc.nvim like vscode?

I'm using vim8.1 + coc.nvim + ccls to work on C/CPP projects since my vscode always crashes. Many of the features on vscode can be implemented by several plugins. However, I have not found a plugin to ...
cbcwestwolf's user avatar
0 votes
0 answers
509 views

Macro not working as expected

I have a list such as follows apple banana cherry I am trying to write a macro that will get it in this format (I am writing a .yaml file) - "apple" - "banana" - "...
Saul Alarcon's user avatar
3 votes
1 answer
833 views

Can macros be edited? [duplicate]

I want to end up in insert mode after a macro. Is there a way to do that? A real life example: Given "foo", I'm wanting to convert it into "$123" where the number is something I ...
4amvim's user avatar
  • 43
0 votes
1 answer
57 views

Bind :w to ASCII bell?

I'm using the Visual Studio Code Vim plugin to write my master's thesis. VS Code has an 'autosave' setting, which I have enabled, which means I don't need to use :w to save my files. However, I can't ...
Niek's user avatar
  • 101
0 votes
1 answer
342 views

Vim Formatter vs VsCode Formatter Problem with GIT

I am using Vim (neovim) for the past couple of weeks now. I am facing one problem with the way vim formats the code. My other team members uses vscode which formats JS file on Save something like this:...
sidgujrathi's user avatar
0 votes
1 answer
289 views

What is a quick and efficient way to cut and paste text with Vim?

I'm a new Vim user (using the Vim extension in VSCode), and while it's faster at some operations, I'm having a lot of trouble finding an easy way to cut text (copy and delete it), then paste it at ...
tris's user avatar
  • 3
3 votes
1 answer
739 views

VSCode Vim -- don't want escape to enter normal mode if I'm exiting tooltip or Intellisense [closed]

I'm new to VIM and I'm loving it. I'm learning slowly but surely. I've passed the point where there's enough benefit and not too much hassle. I'm using the VS code integration. I'm learning VIM (...
gcr's user avatar
  • 131
0 votes
0 answers
40 views

How do you disable automatically copying text when pasting over it in visual mode in VS Code? [duplicate]

Like the title says, if I have yanked some text, then select what I want to replace in visual mode, press p to paste, I want the original text still available to paste in other locations. I never ...
DShook's user avatar
  • 101
2 votes
2 answers
646 views

Optimise surround with quotes

I want to surround a word with quotes Here is my set of commands: ciw ' (I use the Vim extension on Visual Code so I get two ' I do not know if it the case for "normal" Vim) Esc p It works,...
Makoto's user avatar
  • 207
2 votes
0 answers
252 views

How to make vim mode in vs code work with other languages?

I use English(US) and Russian layouts on my laptop. I wonder, is there a way to configure the vim extension in vs code so that it works normally with other languages? I want all commands and mode ...
Georgy Martynovich's user avatar
0 votes
3 answers
2k views

How to copy the selection to clipboard without the indentation that is relevant just in the full file, not in the selection?

With other words: How to copy selection without its root-level indentation? Example: How to copy this: a b c d instead of: a b c d I am using Neovim inside VS Code ...
silviubogan's user avatar
0 votes
1 answer
49 views

What's the fastest way to go about defining functions in Python?

def counter(num): I always get stuck inside of the parenthesis and find myself pressing ESC, going back to Normal mode, then pressing A to append the colon to the end of the line. Is there a faster ...
kiabbo's user avatar
  • 1
1 vote
0 answers
383 views

Extent and limitations of Vim extension for VS Code

VS Code is a very popular these days and it has a Vim emulator which seems to have a fairly good reputation. See: Vim extension page at VS Code marketplace GitHub source for the above extension ...
filbranden's user avatar
  • 28.8k
1 vote
1 answer
98 views

How to add a certain word before the names of methods in Javascript?

I am working with react. First I had a component with state I created methods and all that. Now I want to convert it into stateless component. I have add the word function before each method name. ...
Maheer Ali's user avatar
2 votes
1 answer
987 views

How can I record a macro across multiple files

I have two code files open and I'm trying to write a macro for moving code from one file to the other. I start recording the macro in file A. After I enter all of the commands I need in file A, I ...
Rainbacon's user avatar
  • 121