Questions tagged [vscode]
Questions about VS Code, in particular the Vim and NeoVim extensions for VS Code
26
questions
1
vote
2
answers
34
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 ...
0
votes
1
answer
291
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 ...
1
vote
2
answers
390
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.
0
votes
0
answers
59
views
How can I import snippets from VsCode Extensions into vim?
Im new to vim and I need all snippets in this VsCode extension in vim. I put its link in below:
https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets
How can I import them in ...
1
vote
4
answers
413
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 ...
0
votes
1
answer
191
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 ...
0
votes
2
answers
837
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 ...
2
votes
1
answer
236
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.
1
vote
0
answers
249
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 ...
0
votes
0
answers
31
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?
1
vote
1
answer
236
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" ...
0
votes
0
answers
481
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
0
answers
403
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"
- "...
3
votes
1
answer
687
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 ...
0
votes
1
answer
56
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
1
answer
310
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
1
answer
213
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 ...
2
votes
0
answers
634
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
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 ...
2
votes
2
answers
588
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,...
2
votes
0
answers
223
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 ...
0
votes
3
answers
1k
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
1
answer
45
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 ...
1
vote
0
answers
345
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
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.
...
2
votes
1
answer
929
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 ...