auto-indent Questions
2
I use PyCharm 2016.2 to write my Python programs. Some of my in-line comments look a little messe:
code # comment
code # comment
more code # comment
Is there a way to have PyCharm automatically ...
Ferminafermion asked 6/11, 2016 at 16:37
17
Solved
i'm trying to indent my code in visual studio code. I searched and i found that ctrl + F + K should be work, but it doesn't. I tried cmd + k + f too, but it still not working. I hope you can help m...
Tizes asked 2/2, 2016 at 9:18
8
I'm trying to get VIM to indent Javascript with the '=' and related commands. When I try to auto indent the following, for example:
new function($) {
$.fn.setCursorPosition = function(pos) {
i...
Euripus asked 11/7, 2010 at 16:4
7
I have applied the below settings in VS Code to get 4 spaces indentation.
But always when I open a new file, it switches back to 2 in the right-bottom corner.
If I click in the right-bottom corner...
Hysterical asked 8/3, 2018 at 6:50
27
Solved
I am making the effort to learn Vim.
When I paste code into my document from the clipboard, I get extra spaces at the start of each new line:
line
line
line
I know you can turn off auto inden...
Dalenedalenna asked 25/3, 2010 at 9:52
2
I have set autoindent in my .vimrc
Say I'm on an indented line in Vim in insert mode. If I make a bunch of new lines by pressing enter, it'll keep my cursor indented. However, lines between my cur...
Kismet asked 26/7, 2015 at 23:27
3
Solved
How to disable auto indent in Emacs globally or only for some modes?
I have a number of packages installed for RubyOnRails (ruby, html, js, css).
Let's say I want to disable autoindent for css-...
Ovarian asked 8/12, 2010 at 17:11
6
I got the next .clang-format file in my project's root directory:
---
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsO...
Indicator asked 15/3, 2017 at 0:40
13
It doesn't act like Python's IDLE.
Example:
else:
name = 'World'
print 'Howdy', name
print 'yay'
but in Notepad++
else: # i press enter and this is what it does
lands me here
But I want to be...
Bradfield asked 3/4, 2011 at 21:10
3
I'm trying to create a constructor initializer format like:
Constructor()
: initializer1(),
initializer2()
According the documentation, I tried to set BreakConstructorInitializers to BeforeCol...
Neuberger asked 19/12, 2017 at 10:8
4
I have recently started using Vim for my graduate level projects. The main problem I face is that sometimes I check in unindented code. I feel if I can somehow create a shortcut of auto-indent+save...
Degeneracy asked 13/4, 2013 at 19:47
5
Solved
"SQL Statement indentation good practice" appears to be the accepted format for writing SQL blocks.
Is there a Vim indent/syntax file that would adhere to this standard, or at least be close?
Cur...
Lyudmila asked 20/12, 2011 at 15:0
11
Solved
Example: If I have a document with 2 space indentation, and I want it to have 4 space indentation, how do I automatically convert it by using the Sublime Text editor?
Chelton asked 8/2, 2013 at 13:7
2
Solved
Problem
Auto-Indent Lines improperly shifts indent of Redirecting constructors.
The result of Auto-Indent is below.
Project.getInbox()
: this.update(
foo: 1,
bar: 2,
baz: 3);
The result I...
Scantling asked 18/8, 2018 at 1:35
12
Solved
How do I make vi-Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically indent code after curly brace blocks like Emacs does?
Also, how do I save th...
Likelihood asked 24/10, 2008 at 17:41
13
Solved
How do you auto-indent your code in the Atom editor? In other editors you can usually select some code and auto-indent it.
Is there a keyboard shortcut as well?
Heath asked 24/3, 2014 at 13:52
2
Solved
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 use...
Calfee asked 2/3, 2020 at 4:54
8
I find the autoindent style of Notepad++ a little weird: when I am typing on an indented line, I do want it to indent the next line after I press Enter (this it does properly). However, when I am o...
Corinnacorinne asked 23/9, 2008 at 1:57
2
Solved
I am trying to use Vim for some Groovy code at work. It doesn't seem to handle autoindents well when semicolons are not used. I've found a few questions related to Ruby and JavaScript with the same...
Oreopithecus asked 8/7, 2015 at 20:18
3
Solved
I mean, something equivalent to simple formatting plugin that automatically indents code. Is there something in this sense?
Airel asked 19/10, 2017 at 6:21
4
Solved
I've inherited a huge iOS project which is all using two-space indenting. I need that to be four-space indenting. I know that I can hit Ctrl+I per file, but I'm wondering whether Xcode (or AppCode,...
Bipolar asked 9/12, 2015 at 16:27
6
I am new to Brackets.io and thought I saw a shortcut key to auto indent/format HTML, however I cannot find a shortcut. Is there a shortcut or add-on that will do this for me?
Readymix asked 27/12, 2015 at 8:17
4
Please see the GIF below:
I am using Visual Studio Code. By pressing Enter and Ctrl + Shift + Enter. I can make the auto indent in the next line.
So, I guess there is a more convenient way or ...
Yclept asked 25/5, 2018 at 7:47
4
On Atom (and many other editors), there is the auto-indent command which allows us to auto-indent the line the cursor is on. Is there an equivalent in Visual Studio Code ?
I know there is the form...
Cumae asked 13/10, 2017 at 8:39
3
Solved
After upgrading xcode to v.11 my indention is off when I copy/paste code. The example below shows how it looks when I copy a code. Does anybody know how to fix this?
public func configure(_ view: ...
Kaolin asked 18/10, 2019 at 10:32
1 Next >
© 2022 - 2025 — McMap. All rights reserved.