Questions tagged [indentation]
The indentation tag has no usage guidance.
88
questions
0
votes
2
answers
35
views
Word Indentation When Creating Numbering
I have a simple question. If I insert (1) into a Word document, when I indent afterwards it automatically makes a small space (picture provided), after which an indent defaults to my desired distance. ...
8
votes
4
answers
2k
views
Find and replace in Notepad++: How to insert above line with same amount of indents?
I need to replace, in a large number of Python files with many function definitions, all occurrences of
def some_func(foo, bar):
with
@jit(parallel=True)
def some_func(foo, bar):
with whatever level ...
0
votes
0
answers
31
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 ...
2
votes
0
answers
171
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.
+ ...
1
vote
1
answer
2k
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:
...
0
votes
0
answers
127
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&...
11
votes
1
answer
35k
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 ...
1
vote
2
answers
733
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 ...
2
votes
1
answer
2k
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&...
2
votes
1
answer
601
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 ...
0
votes
1
answer
48
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
1
answer
1k
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 ...
2
votes
2
answers
1k
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 ...
4
votes
1
answer
19k
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
2
answers
3k
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
0
answers
466
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
2
answers
64
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
0
answers
207
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 ...
2
votes
1
answer
521
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
3
answers
4k
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
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 = ...
0
votes
2
answers
1k
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
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?
2
votes
1
answer
2k
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
1
answer
255
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 ...
4
votes
1
answer
5k
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
1
answer
623
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
1
answer
414
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
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. ...
2
votes
1
answer
2k
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
1
answer
212
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
1
answer
12k
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
3
answers
93
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
2
answers
78
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 ...
13
votes
5
answers
10k
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 ...
5
votes
5
answers
12k
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
2
answers
232
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
2
answers
654
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
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 ...
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 ...
7
votes
2
answers
19k
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 ...
6
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,...
13
votes
2
answers
42k
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 ...
5
votes
4
answers
4k
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
0
answers
455
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
...
7
votes
1
answer
13k
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
0
answers
85
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-...
15
votes
3
answers
9k
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
2
answers
702
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
1
answer
468
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.