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:

5878 questions
2811
votes
29 answers

How do I make Git use the editor of my choice for commits?

I would prefer to write my commit messages in Vim, but it is opening them in Emacs. How do I configure Git to always use Vim? Note that I want to do this globally, not just for a single project.
brasskazoo
  • 68,343
  • 22
  • 59
  • 74
2252
votes
33 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
  • 85,857
  • 67
  • 175
  • 234
1745
votes
20 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
  • 24,063
  • 10
  • 50
  • 64
1318
votes
24 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
  • 32,654
  • 13
  • 106
  • 109
1278
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
  • 20,273
  • 14
  • 41
  • 50
1026
votes
1 answer

What IDE to use for Python?

What IDEs ("GUIs/editors") do others use for Python coding?
husayt
  • 12,616
  • 7
  • 45
  • 75
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
  • 3,997
  • 8
  • 33
  • 41
908
votes
19 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
  • 43,908
  • 26
  • 122
  • 165
866
votes
32 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
  • 22,275
  • 18
  • 59
  • 100
817
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
756
votes
27 answers

Convert DOS line endings to Linux line endings in Vim

If I open files I created in Windows, the lines all end with ^M. How do I delete these characters all at once?
Bert Hekman
  • 8,307
  • 3
  • 19
  • 14
728
votes
30 answers

Differences between Emacs and Vim

Without getting into a religious argument about why one is better than the other, what are the practical differences between Emacs and Vim? I'm looking to learn one or the other, but I realize the learning curve for each is high and I can't decide.…
Sasha Chedygov
  • 116,670
  • 26
  • 98
  • 110
641
votes
26 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
  • 26,861
  • 26
  • 111
  • 160
592
votes
15 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,081
  • 2
  • 17
  • 8
586
votes
34 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
  • 52,844
  • 37
  • 123
  • 157
1
2 3
99 100