The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
43 views

Notepad++: is there a way to force it to keep the autoindented-whitespace type?

I wonder if we can force notepad++ to respect the previous whitespace character when it autoindents a new line: list[CR][LF] ····item1[CR][LF] ····item2[CR][LF] --->| (notepadd++ screenshot ...
0
votes
0answers
59 views

Have fill-region break Python code into multiple lines to stay under 80 columns in Emacs

How can I get Emacs' indent-region command to re-indent def foo(): my_favorite_object_ever = ObjectConstructor(cool_parameter=4, not_cool_parameter=5) as def foo(): my_favorite_object_ever ...
0
votes
1answer
99 views

Automatic indentation with MacVim

How can I change the automatic indentation in MacVim? My problem is that when editing a TeX file, every time I type, for example, (, vim decides to indent the line for me. Here is a video of my ...
0
votes
0answers
36 views

Is it possible to customise eclipse's auto-indent?

We use eclipse to write SAS code, and we want to auto-indent our code for consistent readability. In eclipse, you can select the code and press CTRL+I to auto-indent java code. Is it possible to ...
3
votes
1answer
252 views

How to cut and paste tabbed lines with auto indent set to on in vi

Not sure which stack exchange group this question goes so please move to the correct one if this is the wrong one. What's happening is if I highlight something with tabs/indents from one ...
0
votes
0answers
148 views

Vim format python using formatexpr/prg (gq) gives incorrect result

I am having trouble with Python's interaction with comments. These can be divided into two issues. I expect they're related, so I'll post them both here. Issue 1. When using gq to automatically wrap ...
2
votes
2answers
117 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/?', ...
12
votes
3answers
16k views

Is there an HTML auto-indentation feature or plugin for Sublime Text (aka prettify/beautify/format)?

For example, something to change: <section><article><h1></h1><p></p></article></section> to: <section> <article> ...
0
votes
2answers
156 views

How to change language specific plugins in vim?

I'm writing an SML program and I'm trying to change the size of indents. If I add the following to my .vimrc file set tabstop=8 set shiftwidth=8 set expandtab It is not reflected in my actual ...
1
vote
1answer
123 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"); }; }; '> ...
3
votes
2answers
210 views

vim: remove previous code indentation and convert to another

I have a c project with multiple files (more than 100), the codes are written in Whitesmiths style, but I want to change them into K&R style indentation. Is it possible to do using vim in an ...
-1
votes
1answer
616 views

How can I turn off auto-completion in word processing apps?

In both Word and Open Office, these word processors try to be clever and guess where you want to indent, or automatically complete a word you've started to type. In my experience, they are wrong a ...
9
votes
2answers
4k views

How can I indent the wrapped text in Notepad++?

How can I change Notepad++ setting so that wrapped lines gets indented automatically? Right now I have something like this: some text that wraps to next line some indented text that also wraps ...
1
vote
1answer
3k views

Notepad++ XML Auto Indent + Tag Closing

I'm migrating a question I posted on stackoverflow to here as it may be more relevant. Here is the question: I'm looking for a way to code XML (mxml, specifically) in Notepad++ such that it follows ...
12
votes
4answers
17k 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?
2
votes
1answer
172 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
590 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 ...
3
votes
2answers
416 views

Change <li> autoindent options in VIM

By default Vim seems to not want to indent the contents inside of <li> tags, though it autoindents properly for most other HTML tags. For example, if I start with this code: <ul> ...
0
votes
1answer
219 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 ...
4
votes
1answer
508 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 ...
1
vote
2answers
453 views

Customize autoindent settings in VIMRC file

I have autoindent enabled in my .vimrc file but have run into an annoying bug/feature. For example, when I'm tabbed in 3 times, and I hit return, the new line is also tabbed in 3 times. Then when I ...
3
votes
3answers
689 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 ...
6
votes
2answers
973 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 ...