2022 Developer Survey is open! Take survey.

Questions tagged [indentation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Change visualization of indentation in text editor for \t

Is it possible to change the way a \t indentation is displayed in a text editor? For example, in Atom, Notepad++ or Kate? Most people use spaces as identation (e.g.: pressing TAB once produces 2 ...
user avatar
  • 269
1 vote
0 answers
18 views

Avoid indenting the next line of a list in a markdown file

NVIM version v0.6.1 Suppose I am writing a list in markdown and let's say that the cursor is on the item3. Now, doing o in normal mode or Enter in insert mode automatically indents the next line. + ...
user avatar
  • 143
0 votes
1 answer
134 views

Copying text from PDF file doesn't keep indentation or formatting

I get a problem whenever I try to copy/paste code snippets from a PDF file, the pasted code doesn't keep the indentation which is a big problem in Python. This is the source: Here's what gets pasted: ...
user avatar
  • 101
0 votes
0 answers
43 views

Vim/Gvim is no more indenting XML (when entering text) in the way I want

Given a file with extension .xml, I used to indent my content as follows: <?xml version="1.0" encoding="UTF-8"?> <root> <p>This is a text containing <i&...
user avatar
0 votes
1 answer
310 views

VisualStudio: Automatically turn tabs into spaces

It's weird that Google did not bring up an answer to this question: I am using Visual Studio 1.56.0 (user setup) and would like to configure an editor to input the appropriate number of spaces when I ...
user avatar
1 vote
2 answers
196 views

Word TOC Has One Indent Larger Than The Rest

I'm having a problem with the TOC in a word document where one indent is twice as big as all the other ones. There is no extra indent in the heading which I initially thought was the problem. I have a ...
user avatar
1 vote
1 answer
541 views

SED find and replace by keeping indentation

I can't seem to find an answer, I am trying to find and replace a text. For example, find newName: and replace it with a variable that expands. I tried: sed -i "/ newTag:/c newTag: $IMAGE_TAG&...
user avatar
  • 11
2 votes
1 answer
247 views

Kate editor : Indentation in Python

When I user TAB to indent my code, Some times there is a >> sign in the beginning of the line and some times not. This happens automatically. when ever that happens, python results in error for ...
user avatar
  • 133
0 votes
1 answer
32 views

After pasting multiple lines from a website, using keep source formatting, how may I indent only one line, instead of all that were pasted?

The video following URL best shows the issue, and what I'm trying to do: https://streamable.com/otc5a I'll try to go into detail of describing it. I copied lines 4 lines of code from w3schools ...
user avatar
0 votes
1 answer
798 views

Using Excel Power Query to create new columns based on indentation of text

What I am trying to achieve I think is best explained with some pictures. I have the following example data set: Raw Data Using column1 I need to create two columns, the first will contain the ...
user avatar
1 vote
2 answers
570 views

Pasting unformatted text into a bulleted list changes the indentation

A bug that I have long lived with in Word, but that I'm growing increasingly frustrated with, is the following behaviour: copy some unformatted text, e.g. from Notepad put cursor in a new line of a ...
user avatar
  • 359
4 votes
1 answer
15k views

VS Code: edits with 4-spaces, saves with 2-spaces

How do I make "Format on Save" use the same indentation as when I'm editing? E.g. after writing the following snippet (lines are auto-indented with 4-spaces): Edit with 4-space indents However, ...
user avatar
0 votes
2 answers
2k views

How-to hanging Indent in bulleted list in Office 2016

I have a document that has a particular list in the document, right now it looks like this: What I want to achieve is, add a hanging indent on the My Account line - where image (the wrapped content ...
user avatar
0 votes
0 answers
213 views

Word Organizer does not copy style indentation or hanging indent correctly

When I use the import/export organizer to copy certain Word styles, it changes the indent and hanging indent when copying. For instance: Indent: Left: 0", Hanging: 1.25" changes to Indent: Left: 0....
user avatar
1 vote
2 answers
61 views

Using Notepad++ is it possble to create a shortcut to add 2 blank lines indented 4 spaces?

I'm working with Python, and while I use PyCharm, sometimes I need to use NotePad++. Is it possible to create a shortcut to add 2 new blank lines, preferably indented 4 spaces? I'm aware of Ctrl+Alt+...
user avatar
1 vote
0 answers
164 views

How to shift indentation tho right and left in Emacs Evil (Spacemacs) when nothing is selected?

When I am in visual mode, parinfer-shift-right and parinfer-shift-left work fine. But in normal mode these commands have no effect. How to make these commands work in normal mode, when nothing is ...
user avatar
  • 349
2 votes
1 answer
222 views

Webstorm/IntelliJ: Configure spaces (not tabs) to be wider/narrower

In IntelliJ/Webstorm, is there a way to have the editor indent by (e.g.) two spaces, but indented as if it were actually set to four spaces? In other words: have it actually insert two space ...
user avatar
3 votes
2 answers
3k views

Controlling Excel indent reference width

In Excel 2013, I seem to have had the default indent reference width (i.e. the width of an indent value of "1") for left-aligned text somehow increase. When I use a previously created worksheet, I ...
user avatar
0 votes
1 answer
2k views

Mirror indents in MS Word and wrong position of ruler handles

I created a document with mirror margins for book layout and also mirror indents to place a note box along text in each page. Options are as follows: Word Options > Advanced > Document view = ...
user avatar
  • 409
0 votes
2 answers
914 views

indent only first line of paragraph via 'spacebar'

On Notepad++, if I select the first character of a paragraph, and press the 'spacebar', the entire paragraph gets indented by a space. How should I configure it so that only the first character moves ...
user avatar
1 vote
2 answers
2k views

Word 2016: Is there a way to make all first line paragraph indentations uniform throughout doc?

I'm editing a rather long document that has various spacing for first line indentation. I need to standardize it. Is there a way to do that without doing it manually for every single paragraph?
user avatar
2 votes
1 answer
1k views

Auto-indent with the same spaces and tabs as on previous line

I usually indent code files with two spaces, not the default in notepad++. That leads to the problem that if I type two indents, it gets converted to a tab, and then I have to delete it and type in ...
user avatar
  • 123
0 votes
1 answer
194 views

Indent regular text in word, without indenting anything else

I would like to change the indentation for all regular text in a large document, using MS Word 2010, so that the distance to the left border is increased. Indentation for all other types of text ...
user avatar
  • 618
2 votes
1 answer
4k views

Visual Studio Code always converting to Spaces

I'm trying to get my VS code to always indent with tabs. I use a .eslintrc.json file with the rule indent: ["warn", "tab"], this works for some files. I also have a .editorconfig file with ...
user avatar
0 votes
1 answer
503 views

How to force Emacs to reset indent?

I want emacs to automatically reset it's indentation level to 0 at one specific point in a file. For example: Because I have nested-nested-nested-.. namespaces, in the C++-Files I would like to not ...
user avatar
  • 333
3 votes
1 answer
332 views

Emacs: suppress indent after && in shell-script-mode

In shell-script-mode, when a line ends in &&, Emacs will indent the following line. Is there a way to switch that off? (I am concatenating most of my statements with &&. This gives ...
user avatar
0 votes
1 answer
1k views

How to use tabs for all indentation in IntelliJ?

I'm trying to make an indentation scheme for IntelliJ where no spaces are used for indentation of HTML files. I've checked "use tab character" both for default code style and for HTML in particular. ...
user avatar
2 votes
1 answer
1k views

How to remove indents produced from double digit numbering in Microsoft Word?

The image below accurately describes my woes: I want it to look like the following, but I really don't know how:
user avatar
0 votes
1 answer
188 views

How to prevent GNU indent from breaking initialization assignment like "= { 0 };"

See following example. $ indent --version GNU indent 2.2.10 $ cat foo.c void foo() { struct { int a; int b; } v = { 0 }; } $ indent -st foo.c void foo () { struct { ...
user avatar
  • 774
0 votes
1 answer
10k views

Word 2010 - How can I underline a heading, which was aligned to the right and indented to the left, over the whole text area?

I have typeset a heading (heading 1, to be exact) with the following properties: alignment of heading 1: right-aligned indentation of heading 1: 12 cm (meaning each heading has a horizontal space of ...
user avatar
  • 282
0 votes
3 answers
77 views

VIM How Can I Force VIM to Arrange Words According to My Choice?

Well I am writing and learning. I just want to write some text in this way.... - First line. Second line. Third line. But the problem is the lines are starting in this way... - First line. ...
user avatar
  • 111
0 votes
2 answers
67 views

When creating multiple new lines, Sublime only leaves indented the final the line I end up on, and not those above it

In Sublime, when you hit return, it auto-indents the new line, according to syntax. However, if I hit return more than once, going multiple lines down, the previous lines do not remain indented. They ...
user avatar
11 votes
5 answers
8k views

Vim copy/paste messing up indentaton

Whenever I copy something from another application and then go to paste it into vim, it messes up the indentation. For example, just now I tried to copy the manifest.json file from the hello-world ...
user avatar
  • 345
4 votes
5 answers
9k views

How to use tab character for indentation in PhpStorm?

The setting for the switch from space characters to tabs is Use tab character (Settings... -> Editor -> Code Style (-> {LANGUAGE}) -> [checkbox] Use tab character). But it works for me ...
user avatar
  • 1,309
1 vote
2 answers
202 views

GNU indent: How to forbid inserting newlines before `,' in declaration of struct arrays?

See following example. I don't want the , char in a separate line. I go through all indent options but seems like no one is for this. $ indent -version GNU indent 2.2.9 $ cat foo.c void foo () { ...
user avatar
  • 774
1 vote
2 answers
623 views

Notepad++ and Dreamweaver - Tab Conversions

I work on a team of developers. Some like to use Dreamweaver but I really do prefer Notepad++. The problem comes whenever we need to edit one anothers files and the tabs don't match up / align (...
user avatar
7 votes
1 answer
25k views

How to improve Adobe Brackets auto indentation

I'm looking for a way to auto-indent my html code using Adobe Brackets. Currently when I selected the whole code (Ctrl+A) and use the inbuilt indent option using Ctrl+], The entire text moves a tab ...
user avatar
  • 173
4 votes
2 answers
6k views

Is there a way to fix multi-line indenting in Sublime Text 3 so that it adds the indenting characters for the first line inside the selection?

When I select several lines in Sublime Text 3 and indent them as a block (using either Tab or Ctrl + ]), it adds the new whitespace characters at the beginning of the first line outside the selection ...
user avatar
  • 157
7 votes
2 answers
17k views

How to add indent in Python 3.4 interactive mode Terminator Linux?

I'm starting Python from basics. The Python 3.4 Tutorial has an example for interactive mode: >>> the_world_is_flat = True >>> if the_world_is_flat: ... print("Be careful not to ...
user avatar
5 votes
3 answers
5k views

Autoformat for Perl in Vim

I've got a piece of badly formatted Perl code: if ($a==1){ &err_report("$a"); while($b!=1){ &err_ok(); } } I want to reformat it in Vim. After using the command gg=G,...
user avatar
  • 1,052
12 votes
2 answers
37k views

How do I un-indent code?

I occasionally realise that I need to remove one level of indentation when coding (such as moving code out of loop). The problem is I end up with a bunch of lines all indented more than I want it to ...
user avatar
4 votes
3 answers
3k views

Vim assembly formatting

Vim is not properly indenting assembly code, regardless of if I want it to do it automatically or if I try gg=G it'll just says ## lines indented even though it didn't change anything and all my text ...
user avatar
1 vote
0 answers
450 views

Sublimetext 3 Emacs indentation

I'd like to have an indentation like EMACS on Sublimetext when editing ONLY C source code. More specifically I'd like sublime text add 2 spaces of indentation after "{" like in the following example ...
user avatar
5 votes
1 answer
11k views

Correct indentation for selected code with BBEdit

Can I correct the indention of selected code (not my whole page) with BBEdit? So if I had this: <div><div><div> <div><div><div><div> </div> </div&...
user avatar
  • 1,048
1 vote
0 answers
84 views

Vim indentation and the prooftree package

I am using the fabulous vim-latex suite. I use (a lot) the prooftree package which has commands of the kind: \prooftree SOME-HYPOTHESIS-HERE \justifies SOME-CONCLUSION-HERE \using NAME-...
user avatar
15 votes
3 answers
8k views

How can I show vertical indentations markers with Emacs?

I'm looking for an Emacs package or configuration that makes it possible to mark indentations with vertical lines, like those shown in the following screenshot of Sublime Text:
user avatar
3 votes
2 answers
615 views

Disable automatic alignment for Python code in emacs

Right now, in emacs' python-mode line continuations are aligned to the end of the previous line, as follows: this_is_a_list_of_django_urls = ('', url(r'^admin/?', ...
user avatar
  • 814
0 votes
1 answer
345 views

What formatting setting could be causing this indent within the table cell?

I am creating a resume using Microsoft word with the table as my means for structure. I am seeing some weird indents taking place within one of the cell, what could be the cause of this.
user avatar
  • 567
0 votes
0 answers
86 views

Vim ":set cindent" filters commas from the document

With or without a specific document language, whenever "cindent" is set on vim, no comma can be typed or even pasted on the document. I got a "non-us-standard" keyboard (pt-latin).
user avatar
  • 1,051
0 votes
2 answers
7k views

How to copy [just] the alignment and the indentation?

If i have many paragraphs and i want to (Format paint) just the alignment and the indentation of the first paraghragh to the others without other styles like the font and colors how to do that ? for ...
user avatar