Questions tagged [indentation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 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 ...
0
votes
1answer
174 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 ...
0
votes
2answers
127 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 ...
2
votes
1answer
4k 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, ...
0
votes
2answers
625 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 ...
0
votes
0answers
27 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....
1
vote
2answers
55 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+...
1
vote
0answers
124 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 ...
1
vote
1answer
123 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 ...
3
votes
1answer
2k 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
1k 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
624 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
1k 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
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 ...
0
votes
1answer
128 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
3k 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
440 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
279 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
997 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
397 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
179 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
6k 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
76 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
49 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 ...
7
votes
4answers
5k 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 ...
3
votes
4answers
6k 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
162 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
548 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
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 ...
4
votes
2answers
4k 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
15k 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
4k 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,...
8
votes
1answer
29k 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 ...
4
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
446 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 ...
5
votes
1answer
8k 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
81 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-...
14
votes
3answers
6k 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
515 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
319 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
83 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
4k 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
394 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
262 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
625 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
530 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
14k 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
6k 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
1k 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
3k 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 ...