Questions tagged [indentation]
The indentation tag has no usage guidance.
90
questions
1
vote
2
answers
117
views
Why are the new lines getting indented in my Microsoft Word document? [duplicate]
Why are the new lines in the following sentence getting indented in an Office 365 Microsoft Word document, and how can I fix the issue?
Data Shuffling: Distinct clause in a query in a distributed ...
0
votes
1
answer
210
views
How to correct the indentation of Python code with BBedit? Or some other tool?
I have a Python code of about a thousand lines, contained in a .py file, and I would like to fix, possibly automatically, the indentation (i.e. at the first level four characters, then eight, and so ...
0
votes
2
answers
52
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 ...
1
vote
0
answers
77
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 ...
3
votes
1
answer
252
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
4k
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
161
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&...
14
votes
1
answer
59k
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
1k
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
833
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
57
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
2k
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 text ...
2
votes
2
answers
2k
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 ...