Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [indentation]

The tag has no usage guidance.

1
vote
0answers
40 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 ...
0
votes
0answers
16 views

vscode - ts files won't get formatted correctly

after going through quite a bunch of vscode extensions, and playing a lot with configurations and settings, I got to the point where my css/scss/html/json files are formatted correctly according to ...
0
votes
0answers
17 views

Maintaining indentation when switching lines

I am using Sublime Text with the LaTexTools package. When I am working on an indented piece of text, for instance, \begin{equation} xyz + u =10 \end{equation} sometimes I purposefully ...
1
vote
1answer
47 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 ...
2
votes
1answer
542 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 ...
0
votes
1answer
556 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 = Left ...
0
votes
2answers
368 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 ...
1
vote
2answers
699 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?
2
votes
1answer
783 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 ...
0
votes
1answer
82 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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
331 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 ...
3
votes
1answer
219 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 ...
0
votes
1answer
777 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. ...
1
vote
1answer
215 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:
0
votes
1answer
156 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 { ...
0
votes
1answer
3k 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 ...
0
votes
3answers
70 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. ...
0
votes
2answers
39 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 ...
6
votes
4answers
2k 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 ...
2
votes
4answers
5k 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 ...
1
vote
2answers
137 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 () { ...
1
vote
2answers
468 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 (...
7
votes
1answer
24k 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 ...
3
votes
2answers
3k 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 ...
6
votes
2answers
11k 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 ...
5
votes
3answers
3k 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,...
5
votes
1answer
22k 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 ...
2
votes
3answers
2k 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 ...
1
vote
0answers
435 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 ...
3
votes
1answer
5k 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&...
1
vote
0answers
74 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-...
11
votes
3answers
5k 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:
3
votes
2answers
444 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/?', ...
0
votes
1answer
257 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.
0
votes
0answers
74 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).
0
votes
2answers
3k 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 ...
3
votes
3answers
373 views

Vim: wrap/indent/prefix mail lines with “alice> ” and “bob> ”

In a mail thread, Alice and Bob both sent me mail with incredibly long lines. I would like to send a reply that looks like this: alice> blah blah blah, foo dee bar dee baz, ho hum and then alice&...
1
vote
1answer
238 views

VIM inconsistent indentation

I have the following small Specman (.e) file: (set filetype=specman) <' extend sys { a : b; !enable : bool; run() is also { message (LOW, "Hello World"); }; }; '> ...
0
votes
1answer
576 views

How to have vim left-align indented lines (like is possible in Notepad++)

In Notepad++ there is a linewrap option that can be set to aligned so that indented, wrapped lines align at the same left margin. See also here: How can I indent the wrapped text in Notepad++?. Is ...
0
votes
1answer
496 views

SlickEdit's “Indentation guide” equivalent for VS2010?

SlickEdit "Editor Gadget" is a free plug-in for the Visual Studio 2008 editor, with many tools that enhance a coder's productivity and have used it extensively. However, I use Visual Studio 2010 now ...
3
votes
1answer
12k views

Working with Tab or indent in MS Word

What is the proper way to use Indent and Tab functions in MS Word? Ever since Word 97, I get into situations where pressing the TAB key, "increase indent" key, or the top "slider" has constantly ...
6
votes
1answer
5k views

How to format a XML file with long list of attributes?

I am currently working with XML files that contain elements with a long list of attributes. When I try to re-indent the whole XML file using xmllint --format myfile.xml only the elements are indented, ...
2
votes
1answer
871 views

Backspace problems in python-mode

I'm having trouble getting the py-electric-backspace command to execute when I hit backspace at the end of a line of only spaces in python-mode. When I hit backspace it deletes individual spaces, not ...
4
votes
1answer
2k views

How to adjust indentation in TextMate

In TextMate I'd like to adjust the number of spaces added for indentation for JavaScript, CSS and PHP files. I found the bundle editor where I think this should be done, but I don't understand waht do ...
17
votes
4answers
31k views

Autoindentation in Sublime 2 text editor

Is there an auto indentation option in Sublime 2? In Visual Studio I can press Ctrl+K+D to indent everything so the code is structured nicely. Is there a shortcut in Sublime 2 to do the same?
4
votes
1answer
630 views

How to select the currently indented lines in VIM

How I can selected the lines with the same indent? For example: if true: line 1 line 2 ... line n If the cursor is over line 2, how I can selected from line 1 to line n?
1
vote
2answers
756 views

Does anyone have an original Word 2003 normal.dot file?

I'm running Microsoft Office XP Small Business which has Word 2003. I need to know what the Original Default settings were in normal.dot for Paragraph Formatting, specifically: Indentation: Special: ...
2
votes
1answer
225 views

Preserve indent space for wrapped line in Word

I like to print out my code sometimes, so I was wondering if there was a way to get Word (2007 for me) to automatically preserve the amount of tab space for the whole of a wrapped line. Interestingly,...
0
votes
3answers
244 views

How to indent a block of text rightward by 2 whitespace characters in Emacs?

How to indent a block of text rightward by 2 whitespace characters in Emacs? How to indent a block of text rightward by 4 whitespace characters in Emacs? [EDIT] I need a method that doesn't ...