auto-indent

Eclipse “Correct Indentation” ignoring spaces vs. tabs setting

断了今生、忘了曾经 提交于 2021-02-08 03:36:49
问题 I'm running Eclipse Juno Service Release 2 (20130225-0426) in Windows and I'm finding that auto-indent (Ctrl-I) ignores both the General/Editors/Text Editors/Insert spaces for tabs and Java/Code Style/Formatter/Indentation/Tab policy="Spaces only" settings. With both of those set, Ctrl-I indents the code with a combination of tabs and spaces, even though Ctrl-Shift-F uses spaces only. The problem is I don't want Eclipse to reformat my code -- just correct the indentation with spaces. Is this

How to indent code on new google appscript interface?

眉间皱痕 提交于 2021-01-27 21:33:00
问题 Any guidance on how to indent / turn on auto indent on google appscript with shortcuts would be appreciated! 回答1: What I am using when indenting manually is Tab and Shift + Tab on single or multiple lines. Tab for shifting it to the right. Shift + Tab for shifting it to the left. After { , when pressing Enter , it should auto indent itself to the right on the next line. For Auto Formatting, press Ctrl + Shift + I to format the whole file. Or right click in the editor then you can see the

Vim: Indent with tabs, align with spaces

点点圈 提交于 2021-01-27 03:00:52
问题 I've already read several questions and answers: Vim: Use tabs for indentation, spaces for alignment with C source files Vim: Align continous lines with spaces But none of them offers a solution for me. I really want to apply the "Indent with tabs, align with spaces" principle, but when it comes to auto-indentation, I failed to teach Vim how to do that right. Consider the code, assuming tabstops == 3 , shiftwidth == 3 ( >-- means tab, and . (a dot) means space): { >--long a = 1, >-->--..b = 2

Vim: Indent with tabs, align with spaces

匆匆过客 提交于 2021-01-27 02:57:58
问题 I've already read several questions and answers: Vim: Use tabs for indentation, spaces for alignment with C source files Vim: Align continous lines with spaces But none of them offers a solution for me. I really want to apply the "Indent with tabs, align with spaces" principle, but when it comes to auto-indentation, I failed to teach Vim how to do that right. Consider the code, assuming tabstops == 3 , shiftwidth == 3 ( >-- means tab, and . (a dot) means space): { >--long a = 1, >-->--..b = 2

Vim: Indent with tabs, align with spaces

久未见 提交于 2021-01-27 02:57:13
问题 I've already read several questions and answers: Vim: Use tabs for indentation, spaces for alignment with C source files Vim: Align continous lines with spaces But none of them offers a solution for me. I really want to apply the "Indent with tabs, align with spaces" principle, but when it comes to auto-indentation, I failed to teach Vim how to do that right. Consider the code, assuming tabstops == 3 , shiftwidth == 3 ( >-- means tab, and . (a dot) means space): { >--long a = 1, >-->--..b = 2

How to get gedit to auto-indent code

浪子不回头ぞ 提交于 2020-01-30 13:57:07
问题 I'm trying to get gedit to auto-indent my code. The auto-indent check-box in preferences doesn't work. Is there a way to get gedit to auto-indent code? (By the way, I only really care about C++ indentation. I don't need indentation for any other language.) 回答1: The plugin 'intelligent text completion' for gedit does exactly what you describe: https://github.com/nymanjens/gedit-intelligent-text-completion For those who are trying to find out how to copy the files intelligent_text_completion

Sublime Text (v 2.0) - how do I stop auto indentation on new lines after brackets?

六月ゝ 毕业季﹏ 提交于 2020-01-22 15:33:07
问题 I'm trying to make the jump from Notepad++ to Sublime Text 2. However one issue is stopping me from doing so: When working in CSS, JavaScript or PHP - whenever I type a bracket and press [ENTER], an extra indentation is added. E.g. below show's you where the caret ends up if I type a bracket and press enter: { | I need the caret to appear at the same horizontal point as the bracket, like so: { | I've tried messing with the indentation settings to no avail. Here are my current User Settings: {

Tweaking NppAutoIndent, or is there a good customizable alternative?

江枫思渺然 提交于 2020-01-17 02:39:12
问题 I recently started using the NppAutoIndent plugin for Notepad++, and have been fairly pleased with the Smart Indent mode, but I find its lack of customizable preferences to be annoying as there are a few behaviors in Smart Indent mode that I'd like to tweak/modify. I thought about modifying the plugin's source code and recompiling it to try to get the behavior I want, but I have Visual Studio 2010 and the project for the plugin seems to be a VS 2003 project, and as I'm a complete beginner to