Questions tagged [editor]

This tag is for questions about the features and functionality of text editors, source code editors and other programs specifically designed for modifying plain text files used in computer programming. Questions asking us to recommend or find an editor are strictly off-topic.

A text editor is a type of program used for editing plain text files.

A source code editor is a text editor program designed specifically for editing source code of computer programs by programmers.

Resources:

6172 questions
3259
votes
34 answers

How do I make git use the editor of my choice for editing commit messages?

How do I globally configure git to use a particular editor (e.g. vim) for commit messages?
brasskazoo
  • 76,030
  • 23
  • 64
  • 76
2396
votes
34 answers

Indent multiple lines quickly in vi

It should be trivial, and it might even be in the help, but I can't figure out how to navigate it. How do I indent multiple lines quickly in vi?
Allain Lalonde
  • 91,574
  • 70
  • 187
  • 238
1956
votes
22 answers

How to duplicate a whole line in Vim?

How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/ Resharper or Ctrl+Alt+↑/↓ in Eclipse?
sumek
  • 26,495
  • 13
  • 56
  • 75
1484
votes
27 answers

Turning off auto indent when pasting text into vim

I am making the effort to learn Vim. When I paste code into my document from the clipboard, I get extra spaces at the start of each new line: line line line I know you can turn off auto indent but I can't get it to work because I have some…
Rimian
  • 36,864
  • 16
  • 117
  • 117
1408
votes
15 answers

How do I move to end of line in Vim?

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on?
salt.racer
  • 21,903
  • 14
  • 44
  • 51
1097
votes
24 answers

How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd+shift+d behaviour) It's a feature that I use constantly, and am struggling using Visual Studio Code without it.
Chris
  • 54,599
  • 30
  • 149
  • 186
1067
votes
38 answers

How to make vim paste from (and copy to) system's clipboard?

Unlike other editors, vim stores copied text in its own clipboard. So, it's very hard for me to copy some text from a webpage and paste it into the current working file. It so happens I have to either open gedit or type it manually. Can I make vim…
Santosh Kumar
  • 26,475
  • 20
  • 67
  • 118
1024
votes
1 answer

What IDE to use for Python?

What IDEs ("GUIs/editors") do others use for Python coding?
husayt
  • 14,553
  • 8
  • 53
  • 81
1022
votes
2 answers

Text editor to open big (giant, huge, large) text files

I mean 100+ MB big; such text files can push the envelope of editors. I need to look through a large XML file, but cannot if the editor is buggy. Any suggestions?
Yuvi
  • 4,447
  • 8
  • 35
  • 42
829
votes
70 answers

What are the dark corners of Vim your mom never told you about?

There are a plethora of questions where people talk about common tricks, notably "Vim+ctags tips and tricks". However, I don't refer to commonly used shortcuts that someone new to Vim would find cool. I am talking about a seasoned Unix user (be they…
Sasha
791
votes
30 answers

Differences between Emacs and Vim

What practical, objective differences are there between Emacs and Vim? For example, what can be done using one but not the other (or done more easily with one than the other)? What should I know in order to choose one to learn?
Sasha Chedygov
  • 127,549
  • 26
  • 102
  • 115
790
votes
24 answers

How do I edit a file after I shell to a Docker container?

I successfully shelled to a Docker container using: docker exec -i -t 69f1711a205e bash Now I need to edit file and I don't have any editors inside: root@69f1711a205e:/# nano bash: nano: command not found root@69f1711a205e:/# pico bash: pico:…
Igor Barinov
  • 21,820
  • 10
  • 28
  • 33
764
votes
28 answers

Copy all the lines to clipboard

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not using clipboard to store those lines. So is it possible?
Xinus
  • 29,617
  • 32
  • 119
  • 165
670
votes
14 answers

Open two instances of a file in a single Visual Studio session

I have a file, xyz.cpp. I want to open two instances of this file in Visual studio (BTW, I am using Visual Studio 2005). Why would I want to do so? I want to compare two sections of the same file side by side. I know workarounds such as: Make a…
Paragon
  • 6,861
  • 3
  • 19
  • 8
649
votes
37 answers

How can I set up an editor to work with Git on Windows?

I'm trying out Git on Windows. I got to the point of trying "git commit" and I got this error: Terminal is dumb but no VISUAL nor EDITOR defined. Please supply the message using either -m or -F option. So I figured out I need to have an…
Patrick McElhaney
  • 57,901
  • 40
  • 134
  • 167
1
2 3
99 100