Questions tagged [vscode]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
143 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 ...
2
votes
1answer
589 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 ...
1
vote
0answers
70 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 ...
1
vote
0answers
149 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 ...
1
vote
1answer
80 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. ...
0
votes
3answers
76 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 ...
0
votes
1answer
64 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 ...
0
votes
1answer
44 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 ...
0
votes
1answer
36 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
34 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" - "...
0
votes
1answer
95 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:...
0
votes
0answers
188 views

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

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 (...
0
votes
0answers
38 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 ...