The indentation tag has no wiki summary.
19
votes
5answers
9k views
emacs: how to indent/unindent region of python code by 4 spaces?
I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces?
Ideally I'd like something that's not context sensitive (eg. ...
9
votes
4answers
7k 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
2answers
379 views
Enter insert mode indented in VIM
See above picture. My cursor is on line 23 at the start of the line in normal mode. What is a quick command to begin inserting at the correct indentation level?
4
votes
1answer
385 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, ...
4
votes
1answer
282 views
AUCTeX and tabs
I've been tinkering for hours and I'm becoming desperate.
I want tabs! I like tabs, I see no advantage in using spaces and therefore I ident with tabs (alignment is done with spaces though). But I ...
4
votes
2answers
623 views
How do I make vim's autoindent not drop trailing spaces?
In some text editors (e.g. Kate, gedit), when auto indent is enabled, pressing return twice will leave a trailing whitespace (which I want):
if (code) {
....
....|
}
While others cater to the ...
4
votes
2answers
876 views
Disable Emacs' auto indentation for JavaScript mode completely
I have tried to disable the auto indentation in Emacs in JavaScript for three hours now and could not find a (good) solution.
My Emacs version is 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3), at ...
3
votes
1answer
1k views
How do I remove initial indents on numbered lists?
In Word 2007 I want all numbers in a numbered list to be down the LH margin in line with the paragraphs.
When a numbered list is selected, the numbers 1,2,3 are indented by a default 0.63cm. ...
2
votes
2answers
2k views
Re-indent shell script
I have a large shell script that uses a mixture of spaces and tabs. I want to re-indent
the whole file based on syntax, like Eclipse's Format. Is there a program (beautify ?) that will do this ?
...
2
votes
1answer
667 views
Indenting paragraphs in Microsoft Word
I would like to format a Microsoft Word document such that the first line of every paragraph is indented, with the exception of the first paragraph in a section which would not be indented. How can I ...
2
votes
3answers
452 views
How to configure backspace to delete 1 char with ts,sw,sts & et configured in vim
I have the following in my vimrc:
set tabstop=8
set shiftwidth=4
set softtabstop=4
set expandtab
set backspace=indent,eol,start
set autoindent
This does what I want: insert spaces only, never tab ...
2
votes
1answer
112 views
vim: select the current indents lines
in vim, how I can selected the lines with the same indent, 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?
2
votes
1answer
699 views
Different vim indentation settings for specific file type
Drupal provides some reference on how to setup VIM for Drupal development, but I want these indentation settings to be applied to only drupal related files instead of all files
set expandtab
set ...
2
votes
4answers
327 views
Indentation for plain text bulleted lists in Vim
I often write text with a format like this in Vim—
- talking point 1
- talking point 2 ....
continue on point 2
Ideally, I would hope Vim could auto align it for me such as:
- talking ...
2
votes
3answers
768 views
OpenOffice: How to prevent text indentation on the very first paragraph?
My OpenOffice default paragraph style defines an indentation of 1.3em for the first line of every paragraph.
Now, typographically more adequate would be, if the indentation would be 0 for the very ...
2
votes
0answers
97 views
Microsoft Word 2010 - Tab does not increase bullet indents
I'm looking at the solution here: Microsoft Word - When I hit tab, it no longer indents the bullet-point in a list.
However I already have that auto format option checked. Turning it off/on again and ...
2
votes
1answer
129 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.
...
1
vote
2answers
1k views
How to set syntax specific settings in my VIMRC?
I work with several languages and markups in vim every day (ruby, python, javascript, CSS, HTML, etc), and would like to have different settings for each buffer when I fire up my editor. How can I ...
1
vote
1answer
9k views
How to set default indent on bullets in Word 2007?
I know that I can use the List Bullet style in order to make bullets flush to the left margin in Word 2007; however, when I use that and try to use Tab to make the next line a deeper level, the bullet ...
1
vote
2answers
381 views
VIM - Auto-indent lines with over length
Is there an option in VIM to auto-intend (like in Espresso) lines which are too long to be displayed in the current window so that they get an automatic line break?
This is how it looks like in ...
1
vote
3answers
92 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
...
1
vote
1answer
109 views
How to get consistent indenting of multiple levels of bullets in Microsoft Word 2000?
Running Microsoft Word 2000, I click on the Bullet icon in the taskbar, and the current line gets a bullet. I press and the cursor moves to the next line, which also has a bullet. I click on the ...
1
vote
1answer
291 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: ...
1
vote
1answer
275 views
How can I pretty print erb in BBedit indenting rails tags and not just markup?
I want to re-indent my code but the rails tags <% foo %> get aligned to the left with no indentation. What I'm using is:
markup > utilities > format > pretty print
Does anyone know if ...
1
vote
0answers
339 views
How to tidy / beautify / re-indent html.erb files in Coda
A few weeks ago I tried using the HTML Tidy Service but no matter what I did with the configuration, it never worked properly with erb files. That's just not what it's made for. All I want is ...
1
vote
0answers
380 views
html indentation for css, html in emacs
I have problem with emacs indentation in html and js mode .
i want better mode or function for better indention
I also see Smart Tab and create code like this
(require 'smarttabs)
(define-key ...
0
votes
3answers
153 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 ...
0
votes
1answer
156 views
Working with TAB or indent in MSWORD
What is the proper way to use Indent and Tab functions in MSword? Ever since Word97, I get into situations where pressing "TAB" key, "increase indent" key, or the top "slider" has constantly ...
0
votes
1answer
31 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
1answer
88 views
SlickEdit's “Indentation guide” equivalent for VS2010?
SlickEdit "Editor Gadget" is a free plugin for the Visual Studio 2008 editor, with many tools that enhance a coder's productivity. I used it extensively.
However, I use Visual Studio 2010 now and ...
0
votes
1answer
131 views
change default list indentation for all lists, word 2010
i wanted to ask how to change the indentation for all lists (including multi-leveled) to indent one inch inward? for example if i have...
monster
a. color
human
a. color
i want a. to be ...
0
votes
1answer
64 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
143 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 ...
0
votes
1answer
328 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 ...
0
votes
2answers
708 views
How to show indentation guides in TextMate
How do I show indentation guides in TextMate?
Anyone knows if there is a bundle for this? There's no setting, obviously.
0
votes
1answer
314 views
How can I tell what syntax and indentation rules Vim is using on a particular line?
For better or worse, PHP code often includes both HTML and Javascript. Getting Vim to indent it all correctly can be tricky.
My .vimrc specifies that a tab should always be two spaces:
set ...
0
votes
1answer
132 views
Is there a way to indent HTML or PHP code instantly using a program such as Scite?
If I have the following code:
<div id="nla">hi</div><table>
<tr>
<td>hi</td></tr></table>
I want to use Scite or any other program to take ...
0
votes
0answers
23 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
0answers
46 views
Komodo Edit, how to uncheck all “Allow file contents to override Tab and Indentation settings” on all files automatically
On Komodo Edit, i found that this settings:
Edit -> Current File Settings -> Editor -> Indentation
[v] "Allow file contents to override Tab and Indentation settings"
are annoyingly annoying, since ...
0
votes
1answer
95 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
0answers
73 views
What should the indenting in org-mode look like? [closed]
When should I indent the "body" of a headline in Emacs org-mode to the level of the title of the preceding headline and when should I leave it flush left? What is the common practice? Does it matter ...
0
votes
1answer
180 views
Set indent mode for tpl files in vim
I currently work on a cms with .tpl files.
It's mainly HTML so I would lile vim to understand that I want to use an "HTML complient" mode for autoindent.
When I type text, it works, but when I try ...
0
votes
1answer
168 views
Microsoft Word Read-Only Document - Avoid Unwanted Tab Space
I have a read-only Microsoft Word (docx) document that has (in addition to explanatory read-only text) a few editable forms. In one of these forms, there are two columns. Each column has a ...
0
votes
1answer
366 views
Can I get vim to correctly indent this Ruby code (Nokogiri)?
The first XML Builder Example for Nokogiri looks like this:
builder = Nokogiri::XML::Builder.new do |xml|
xml.root {
xml.products {
xml.widget {
xml.id_ "10"
...
0
votes
1answer
269 views
netbeans IDE doesn't indent my SQL code
I've been searching for a good IDE for awhile and it seems netbeans is great. Everything looks and works nice, but I can't get it to indent sql code (possibly others, but this is all I've noticed thus ...
0
votes
1answer
40 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 ...