Questions tagged [auto-indent]

Auto-indentation is used in programming tools (IDEs and source code beautifiers) to automatically adjust the amount of leading white space on a line.

Auto-indentation is used in programming tools (IDEs and source code beautifiers) to automatically adjust the amount of leading white space on a line. In certain programming languages, such as Python, Haskell, and Occam, indentation is crucial for to demarcating the programming structure, and so auto-indentation plays an important role in facilitating this.

365 questions
8
votes
1 answer

Undoing auto-indentation

Wnen you use irb with auto indent mode, the end statements get indented one level extra def foo ... end instead of showing the ordinary indenting convention: def foo ... end because you cannot tell irb in advance that you are going to…
sawa
  • 156,411
  • 36
  • 254
  • 350
8
votes
1 answer

How to set autoindent after open parenthesis

When I type an open parenthesis followed by a newline, I'd like the cursor to autoindent one tab value--the same way it does with an open curly brace or open square bracket. For some reason, it indents two tab values. I'm particularly interested in…
rampatowl
  • 1,260
  • 1
  • 9
  • 26
8
votes
1 answer

Preserve spacing on indent or outdent with tab in VSCode

In VSCode, when I have: /* * Comment */ If I select it and hit tab, I get: /* * Comment */ If instead I had hit shift-tab, I get: /* * Comment */ Same happens with Ctrl-] and Ctrl-[ (if those are…
8
votes
2 answers

Indentation Error with Sublime Text

I'm trying to use the auto-indentation feature in Sublime Text 3 for HTML. I've got some block comments in the html and selecting Edit>Line>Reindent works until it hits a block comment. Try to reindent the example here: Testing…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/sublimetext3" class="post-tag grid--cell" title="show questions tagged 'sublimetext3'" rel="tag">sublimetext3</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> <a href="../../questions/tagged/text-indent" class="post-tag grid--cell" title="show questions tagged 'text-indent'" rel="tag">text-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 07 '16 at 14:25">asked Jul 07 '16 at 14:25</time> <a href="../../users/3748900/mike-piercy" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3748900.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Mike_Piercy" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/3748900/mike-piercy" class="s-user-card--link">Mike_Piercy</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">153</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="11 bronze badges">11</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-3582436"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>8</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>3</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/3582436/how-can-i-make-emacs-cperl-mode-indent-all-statement-continuations-by-only-one" class="question-hyperlink">How can I make emacs' cperl-mode indent all statement continuations by only one level?</a></h3> <div class="excerpt">In emacs' cperl-mode, lines that continute a statement from a previous line are indented by one level: my $var = (1+1) * (2+2) / (3+3); However, if the statement does not begin at zero indentation because it is inside a block, then if you…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/emacs" class="post-tag grid--cell" title="show questions tagged 'emacs'" rel="tag">emacs</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> <a href="../../questions/tagged/cperl-mode" class="post-tag grid--cell" title="show questions tagged 'cperl-mode'" rel="tag">cperl-mode</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 27 '10 at 08:24">asked Aug 27 '10 at 08:24</time> <a href="../../users/125921/ryan-c-thompson" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/125921.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Ryan C. Thompson" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/125921/ryan-c-thompson" class="s-user-card--link">Ryan C. Thompson</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">37,328</li> <li class="s-award-bling s-award-bling__gold" title="27 gold badges">27</li> <li class="s-award-bling s-award-bling__silver" title="87 silver badges">87</li> <li class="s-award-bling s-award-bling__bronze" title="147 bronze badges">147</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-18945380"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>8</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/18945380/how-to-get-auto-indent-not-smart-indent-in-emacs-in-all-modes" class="question-hyperlink">How to get auto indent (not smart indent) in emacs in all modes</a></h3> <div class="excerpt">I'm new to emacs, and its indenting is driving me up the walls. It's too smart for its own good; it (incorrectly) thinks it knows how I want to format my source, but I don't have time to chase down every setting for every mode for every different…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/emacs" class="post-tag grid--cell" title="show questions tagged 'emacs'" rel="tag">emacs</a> <a href="../../questions/tagged/elisp" class="post-tag grid--cell" title="show questions tagged 'elisp'" rel="tag">elisp</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 22 '13 at 15:18">asked Sep 22 '13 at 15:18</time> <a href="../../users/3712/barry-kelly" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3712.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Barry Kelly" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/3712/barry-kelly" class="s-user-card--link">Barry Kelly</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">39,856</li> <li class="s-award-bling s-award-bling__gold" title="4 gold badges">4</li> <li class="s-award-bling s-award-bling__silver" title="99 silver badges">99</li> <li class="s-award-bling s-award-bling__bronze" title="180 bronze badges">180</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-8493705"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/8493705/vim-use-tabs-for-indentation-spaces-for-alignment-with-c-source-files" class="question-hyperlink">Vim: Use tabs for indentation, spaces for alignment with C source files</a></h3> <div class="excerpt">Does anybody have her vim setup in a way that uses hard tabs as indentation characters, but does use spaces for alignment? The problem I have is that when starting a continuation line like in if (condition1 && (anotherlongcondition || /* <-- Here I…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/vim" class="post-tag grid--cell" title="show questions tagged 'vim'" rel="tag">vim</a> <a href="../../questions/tagged/alignment" class="post-tag grid--cell" title="show questions tagged 'alignment'" rel="tag">alignment</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 13 '11 at 17:45">asked Dec 13 '11 at 17:45</time> <a href="../../users/1073695/jo-so" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1073695.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jo So" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/1073695/jo-so" class="s-user-card--link">Jo So</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">20,794</li> <li class="s-award-bling s-award-bling__gold" title="6 gold badges">6</li> <li class="s-award-bling s-award-bling__silver" title="35 silver badges">35</li> <li class="s-award-bling s-award-bling__bronze" title="57 bronze badges">57</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-8253469"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/8253469/how-do-you-tweak-xcode-s-auto-indentation-of-objective-c-parameters" class="question-hyperlink">How do you Tweak Xcode's auto-indentation of Objective C Parameters?</a></h3> <div class="excerpt">Here's a snippet of code from my iOS app: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Do you like my hat?" message:@"If so, please help spread the word by rating our app now?" …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/objective-c" class="post-tag grid--cell" title="show questions tagged 'objective-c'" rel="tag">objective-c</a> <a href="../../questions/tagged/xcode4" class="post-tag grid--cell" title="show questions tagged 'xcode4'" rel="tag">xcode4</a> <a href="../../questions/tagged/formatting" class="post-tag grid--cell" title="show questions tagged 'formatting'" rel="tag">formatting</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 24 '11 at 07:23">asked Nov 24 '11 at 07:23</time> <a href="../../users/79202/theory" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/79202.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="theory" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/79202/theory" class="s-user-card--link">theory</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">8,210</li> <li class="s-award-bling s-award-bling__gold" title="8 gold badges">8</li> <li class="s-award-bling s-award-bling__silver" title="50 silver badges">50</li> <li class="s-award-bling s-award-bling__bronze" title="115 bronze badges">115</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-7426051"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/7426051/how-to-left-align-io-stream-operators-and-in-vim" class="question-hyperlink">How to left-align IO stream operators << and >> in Vim?</a></h3> <div class="excerpt">For example, instead of following alignment: std::cout << "Hello " << "Hello " << "world "; I want left-align the << operator, as: std::cout << "Hello " << " Hello " << "world "; By default, Vim chooses the first one. Looks like it…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/vim" class="post-tag grid--cell" title="show questions tagged 'vim'" rel="tag">vim</a> <a href="../../questions/tagged/iostream" class="post-tag grid--cell" title="show questions tagged 'iostream'" rel="tag">iostream</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 15 '11 at 04:57">asked Sep 15 '11 at 04:57</time> <a href="../../users/231855/fan" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/231855.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Fan" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/231855/fan" class="s-user-card--link">Fan</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,053</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="9 silver badge">9</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badge">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-12757218"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/12757218/how-can-i-make-matlab-s-editor-smart-indent-always-on-while-writing-code" class="question-hyperlink">How can I make Matlab's editor smart indent always on while writing code?</a></h3> <div class="excerpt">While working with Matlab I'm using very often the combination of Ctrl+A (select all) followed by Ctrl+I (smart indent). Can I make Matlab's editor smart indent option working automatically, while I type code? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/matlab" class="post-tag grid--cell" title="show questions tagged 'matlab'" rel="tag">matlab</a> <a href="../../questions/tagged/editor" class="post-tag grid--cell" title="show questions tagged 'editor'" rel="tag">editor</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 06 '12 at 06:02">asked Oct 06 '12 at 06:02</time> <a href="../../users/1292464/bla" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1292464.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="bla" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/1292464/bla" class="s-user-card--link">bla</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">25,215</li> <li class="s-award-bling s-award-bling__gold" title="10 gold badges">10</li> <li class="s-award-bling s-award-bling__silver" title="66 silver badges">66</li> <li class="s-award-bling s-award-bling__bronze" title="100 bronze badges">100</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-10204982"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/10204982/ixmldocument-savetofile-uses-tab-character-for-indentation-instead-of-spaces" class="question-hyperlink">IXMLDocument.SaveToFile() uses tab character for indentation instead of spaces</a></h3> <div class="excerpt">I have an XML file, which is originally formatted using space indents (2 spaces for each nested item). When I load and save this file using IXMLDocument, space indents are changing to the tab characters (code #9). Here is the code: var FileName:…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/delphi" class="post-tag grid--cell" title="show questions tagged 'delphi'" rel="tag">delphi</a> <a href="../../questions/tagged/delphi-2010" class="post-tag grid--cell" title="show questions tagged 'delphi-2010'" rel="tag">delphi-2010</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 18 '12 at 07:38">asked Apr 18 '12 at 07:38</time> <a href="../../users/337473/andrew" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/337473.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Andrew" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/337473/andrew" class="s-user-card--link">Andrew</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,512</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="38 silver badges">38</li> <li class="s-award-bling s-award-bling__bronze" title="67 bronze badges">67</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-9425466"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>6</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>3</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/9425466/emacs-mode-for-a-c-like-language" class="question-hyperlink">Emacs Mode for a c-like language</a></h3> <div class="excerpt">I'm trying to write a new emacs mode for a new template c-like language, which I have to use for some academic research. I want the code to be colored and indented like in c-mode, with the following exceptions: The '%' is not used as an operator,…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/emacs" class="post-tag grid--cell" title="show questions tagged 'emacs'" rel="tag">emacs</a> <a href="../../questions/tagged/colors" class="post-tag grid--cell" title="show questions tagged 'colors'" rel="tag">colors</a> <a href="../../questions/tagged/development-environment" class="post-tag grid--cell" title="show questions tagged 'development-environment'" rel="tag">development-environment</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 24 '12 at 04:35">asked Feb 24 '12 at 04:35</time> <a href="../../users/242417/oren" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/242417.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Oren" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/242417/oren" class="s-user-card--link">Oren</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,647</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="22 silver badges">22</li> <li class="s-award-bling s-award-bling__bronze" title="37 bronze badges">37</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-7772126"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>6</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/7772126/netbeans-turn-off-any-auto-indentation-auto-formatting" class="question-hyperlink">NetBeans, Turn off **ANY** auto indentation / auto formatting</a></h3> <div class="excerpt">I have just tried out NetBeans and I really like it. But what drives me crazy is the horrible automatic code formatting ! If I make an indentation, I want that indentation, but NetBeans keeps going straight the formatting style defined in Tools ->…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/netbeans" class="post-tag grid--cell" title="show questions tagged 'netbeans'" rel="tag">netbeans</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 14 '11 at 18:44">asked Oct 14 '11 at 18:44</time> <a href="../../users/791713/niklas-r" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/791713.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Niklas R" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/791713/niklas-r" class="s-user-card--link">Niklas R</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">14,369</li> <li class="s-award-bling s-award-bling__gold" title="23 gold badges">23</li> <li class="s-award-bling s-award-bling__silver" title="82 silver badges">82</li> <li class="s-award-bling s-award-bling__bronze" title="179 bronze badges">179</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-60482731"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>6</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/60482731/how-to-turn-off-auto-indent-in-visual-studio-2019-not-visual-studio-code" class="question-hyperlink">How to turn off auto indent in Visual Studio 2019? (not VISUAL STUDIO CODE)</a></h3> <div class="excerpt"> I usually use comma , to set the same variable type like the gif above. But a problem is when I hit Enter after write second variable, the VS breaks the line automatically. As a formal Atom user, it's a bit tedious because in Atom it doesn't break…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/visual-studio" class="post-tag grid--cell" title="show questions tagged 'visual-studio'" rel="tag">visual-studio</a> <a href="../../questions/tagged/tabs" class="post-tag grid--cell" title="show questions tagged 'tabs'" rel="tag">tabs</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/line-breaks" class="post-tag grid--cell" title="show questions tagged 'line-breaks'" rel="tag">line-breaks</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 02 '20 at 04:54">asked Mar 02 '20 at 04:54</time> <a href="../../users/11414756/sniffingdoggo" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/11414756.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="sniffingdoggo" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/11414756/sniffingdoggo" class="s-user-card--link">sniffingdoggo</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">336</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badges">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-4829244"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>6</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/4829244/how-do-i-define-indents-in-vim-based-on-curly-braces" class="question-hyperlink">How do I define indents in vim based on curly braces?</a></h3> <div class="excerpt">I use https://github.com/cakebaker/scss-syntax.vim for syntax highlighting SCSS (or SASS) files on vim, which works very well for syntax highlighting. However, the plugin does not come with an indent file and am having trouble writing one. I would…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/vim" class="post-tag grid--cell" title="show questions tagged 'vim'" rel="tag">vim</a> <a href="../../questions/tagged/indentation" class="post-tag grid--cell" title="show questions tagged 'indentation'" rel="tag">indentation</a> <a href="../../questions/tagged/sass" class="post-tag grid--cell" title="show questions tagged 'sass'" rel="tag">sass</a> <a href="../../questions/tagged/auto-indent" class="post-tag grid--cell" title="show questions tagged 'auto-indent'" rel="tag">auto-indent</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 28 '11 at 14:22">asked Jan 28 '11 at 14:22</time> <a href="../../users/114157/chibicode" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/114157.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="chibicode" onerror="onImageLoadingError(this);" /> </a> <div class="s-user-card--info"> <a href="../../users/114157/chibicode" class="s-user-card--link">chibicode</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,821</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="20 silver badges">20</li> <li class="s-award-bling s-award-bling__bronze" title="24 bronze badges">24</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=3" rel="prev" title="Go to page 3">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=24" rel="" title="Go to page 24">24</a> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=25" rel="" title="Go to page 25">25</a> <a class="s-pagination--item" href="../../questions/tagged/auto-indent_page=5" rel="next" title="Go to page 5"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script> /* replace <time class="fromnow" /> with human delta between `datetime` attr and now */ document.addEventListener('DOMContentLoaded', function(){ var time_elements = document.querySelectorAll("time.fromnow"); for (var i=0; i<time_elements.length; i++) { time_elements[i].innerHTML = moment(time_elements[i].getAttribute("datetime")).fromNow(); } }); </script> </body> </html>