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
540
votes
6 answers

How do I turn off the unlimited whitespace in IntelliJ editor?

How do I remove the ability to move the cursor after then end of line in IntelliJ?
Joshua
  • 24,418
  • 22
  • 74
  • 106
525
votes
6 answers

How do I force Sublime Text to indent two spaces per tab?

Is there a way to force Sublime Text 2 to always indent two spaces per tab when working with Ruby files? I know that indentation can be set under the view -> indentation menu option, but it does not stick. Every time I open a new file and hit tab,…
Mohamad
  • 32,727
  • 31
  • 131
  • 208
466
votes
34 answers

What are the benefits of learning Vim?

As a programmer I spend a lot of hours at the keyboard and I've been doing it for the last 12 years, more or less. If there's something I've never gotten used to during all this time, it's these annoying and almost unconscious constant…
Trap
  • 11,199
  • 15
  • 53
  • 64
404
votes
6 answers

Set language for syntax highlighting in Visual Studio Code

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/ I have a textfile (.txt) with CSS in it and want to get syntax hightlighting. You can open…
Florian Leitgeb
  • 12,686
  • 5
  • 27
  • 36
382
votes
10 answers

Using Vim's tabs like buffers

I have looked at the ability to use tabs in Vim (with :tabe, :tabnew, etc.) as a replacement for my current practice of having many files open in the same window in hidden buffers. I would like every distinct file that I have open to always be in…
indentation
  • 9,407
  • 6
  • 19
  • 14
361
votes
11 answers

Select all occurrences of selected word in VSCode

Are there any trick or extension to select all instances of selected word in visual studio code, to facilitate editing or deleting those instances without search and replace, like ِAlt+F3 in sublime text
Alaa M. Tekleh
  • 4,638
  • 3
  • 14
  • 28
334
votes
14 answers

What is the difference between Sublime text and Github's Atom

Github announced Atom which is very similar to Sublime. Even some keyboard shortcuts like ⌘ + P, ⌘ + Shift + P etc. are same. How is Atom different from Sublime? Does it include IDE features like build tools, function definition jumps,…
Om Shankar
  • 7,795
  • 3
  • 30
  • 51
326
votes
12 answers

How can I swap positions of two open files (in splits) in vim?

Assume I've got some arbitrary layout of splits in vim. ____________________ | one | two | | | | | |______| | | three| | | | |___________|______| Is there a way to swap one and two and…
wes
  • 6,975
  • 5
  • 29
  • 41
314
votes
8 answers

How to replace four spaces with a tab in Sublime Text 2?

I want to replace all the "four spaces" that is written by another text editor with tabs. How can I do it?
Mohsen
  • 58,878
  • 30
  • 149
  • 175
309
votes
13 answers

Change the Theme in Jupyter Notebook?

I like dark themes. However, the default theme of Jupyter notebooks is light, and I can't find the option to change the theme/background-color. How is this done?
Moby Khan
  • 3,189
  • 3
  • 9
  • 13
265
votes
5 answers

Does Notepad++ show all hidden characters?

In Notepad++ I have set "replace tab with 2 spaces". When coding in Python I copy-pasted some code from the web and it appeared indented correctly. But running the code resulted in indentation errors, which I solved in the end by removing all…
user89021
  • 13,714
  • 14
  • 51
  • 65
252
votes
4 answers

Go to first line in a file in vim?

How do I go to first line in a file in vim ?
Jean
  • 18,513
  • 22
  • 63
  • 104
252
votes
5 answers

How to change background color in the Notepad++ text editor?

Does anyone know how to change the background color, font size, and other appearance-based settings in Notepad++? The default is white but I am trying to change it into a dark gray or something else.
xzibit
  • 2,727
  • 2
  • 15
  • 19
236
votes
2 answers

GUI-based or Web-based JSON editor that works like property explorer

Background: This is a request for something that may not exist yet, but I've been meaning to build one for a long time. First I will ask if anyone has seen anything like it yet. Suppose you have an arbitrary JSON structure like the following: { …
dreftymac
  • 27,818
  • 25
  • 108
  • 169
234
votes
10 answers

Disabling swap files creation in vim

Is there a way to disable .swp files creation in vim? or at least create them all in one place so I can find and delete them easily. I find them especially annoying when I copy the parent directory while editing at the same time. Of course I know…
Nadia Alramli
  • 99,188
  • 32
  • 168
  • 151