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
224
votes
16 answers

How can I make Sublime Text the default editor for Git?

I have a problem setting Sublime Text 2 as the core.editor with git. I've read through every post I could find addressing the problem, but still nothing is working for me. I am running Windows. I have done: git config --global core.editor…
Spencer Moran
  • 2,320
  • 3
  • 13
  • 13
219
votes
22 answers

How to Select Columns in Editors (Atom,Notepad++, Kate, VIM, Sublime, Textpad,etc) and IDEs (NetBeans, IntelliJ IDEA, Eclipse, Visual Studio, etc)

How to select columns in Editors and IDEs to columnar delete, insert or replace some characters ? Editors: Atom Notepad++ Kate VIM Sublime Emacs Textpad Emerald Editor UltraEdit MCEdit jEdit Nedit IDEs: NetBeans Eclipse Visual Studio IntelliJ…
Sajad Bahmani
  • 16,531
  • 27
  • 81
  • 105
215
votes
13 answers

Using Emacs to recursively find and replace in text files not already open

As a follow-up to this question, it's trying to find out how to do something like this which should be easy, that especially stops me from getting more used to using Emacs and instead starting up the editor I'm already familiar with. I use the…
Rob Kam
  • 9,537
  • 14
  • 52
  • 64
210
votes
3 answers

Is there an Eclipse line-width marker?

I have a specific project where I need to wrap every code line at 65 characters. I have set up the eclipse Java code formatter properly for this. But what I really want is a vertical line to be drawn in the editor showing where the max line width…
Mocky
  • 7,425
  • 5
  • 25
  • 23
207
votes
60 answers

What is the best way to force yourself to master vi?

A good while ago, I read an article by the creator of viemu, clearing up a lot of the misconceptions about vi, as well as explaining why it's a good idea (and why it's been very popular for the last 30 years+). The same guy also has a great set of…
webmat
  • 50,648
  • 12
  • 52
  • 59
198
votes
7 answers

What LaTeX Editor do you suggest for Linux?

What LaTeX editor do you suggest? Could you please give me some links?
Progress Programmer
  • 6,276
  • 14
  • 47
  • 51
194
votes
13 answers

How to comment out a block of Python code in Vim

I was wondering if there was any key mapping in Vim to allow me to indent certain lines of code (whether those lines have been selected in visual mode, or n lines above/below current cursor position). So basically something that converts the…
Rishabh Manocha
  • 2,837
  • 3
  • 16
  • 15
193
votes
11 answers

How do you return from 'gf' in Vim

I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf command to go to a file under the cursor. I'm looking for a command to either: return to the previous file (similar to Ctrl+T for ctags), or remap gf to…
JayG
  • 4,069
  • 3
  • 20
  • 19
180
votes
2 answers

How to disable word-wrap in Xcode 4 editor?

I can't find how to disable word-wrap in Xcode 4 editor. How can I do it?
eonil
  • 75,400
  • 74
  • 294
  • 482
179
votes
6 answers

Saving vim macros

Does anyone know how to properly save/reuse macros recorded inside of a vim editor?
jnadro52
  • 3,064
  • 3
  • 17
  • 16
176
votes
3 answers

What are the advantages of Sublime Text over Notepad++ and vice-versa?

Lots of friends have suggested me to start using Sublime Text instead of Notepad++, but I've been happy so far with Notepad++. I use Notepad++ mainly for quick editing files (Haskell, Python, C#, HTML, JS, CSS, etc.), copying & paste pieces of text…
Oscar Mederos
  • 26,873
  • 20
  • 76
  • 120
175
votes
39 answers

List of macOS text editors and code editors

I searched for this and found Maudite's question about text editors but they were all for Windows. As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides what I know of. I'll edit my post to…
Teifion
  • 98,441
  • 75
  • 152
  • 192
170
votes
5 answers

Delete text in between HTML tags in vim?

I know di< will delete in an HTML tag itself. Is there an easy way to delete text in between two tags? How can I delete this text? Thanks!
CMB
  • 3,725
  • 5
  • 24
  • 19
168
votes
13 answers

How can I maximize the editor pane in IntelliJ IDEA?

In Eclipse, I can type Ctrl+M or click the maximize icon in the editor pane to make the editor pane take up the entire Eclipse window, and then again to restore the pane back to its previous size exposing the other panes. Is it possible to perform…
Jeff Axelrod
  • 25,625
  • 29
  • 137
  • 239
165
votes
35 answers

How do I duplicate a whole line in Emacs?

I saw this same question for VIM and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least number of commands to perform this in Emacs?
Ray
  • 169,974
  • 95
  • 213
  • 200