indentation Questions

4

Solved

I'm trying to compile and statically link Emacs, because at work I'm forced to do JavaScript development over ssh on a production server running CentOS 5.1 with a broken package manager configurati...
Pangenesis asked 5/7, 2013 at 0:16

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

9

Solved

I've set the following options in .vimrc set listchars=tab:▸\ ,trail:· set list And expected to see dots in those places where spaces are used for tabulation in the code (I use spaces, not tabs)...
Ninebark asked 6/1, 2011 at 16:18

7

Solved

In TeX vim usually screws up my indentation. Mainly when I'm in a displayed equation which I think should look like this: \[ x=\frac{y}{z} \] where the whitespace infront of the x is one tab. ...
Sipe asked 13/8, 2011 at 21:59

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

2

Solved

Why is the indentation almost always messed up when copying and pasting code in VScode? For example: Copying: Pasting: Another example: And it's sometimes even more messed up. Is there a way to...
Chare asked 12/3, 2017 at 12:40

9

Solved

In Python, I want to write a multi-line dict in my code. There are a couple of ways one could format it. Here are a few that I could think of: mydict = { "key1": 1, "key2": 2, "key3": 3, } myd...
Bespangle asked 17/6, 2011 at 15:35

24

Solved

I want to write a few lines of text. They should be formatted normally except each line should start at the 6th column. I.e. I don't want the code block formatting rule to make this chunk of text l...
Mintamintage asked 18/5, 2011 at 14:21

2

Solved

I want an indented newline after typing opening bracket and pressing Enter in VSCode. Here's an example where | is the cursor: Current behaviour- function f() { |} Behaviour wanted- function f() {...
Bossuet asked 10/8, 2022 at 18:9

2

I have prettier code formatter installed, which makes 2 spaces as a standard indentation for the code. However, indent-rainbow highlights it as a red, so it thinks that default indentaion is 4 spac...
Jenevajeni asked 11/5, 2022 at 11:56

8

Solved

How can indentation be automatically (not manually) corrected in IntelliJ? In Eclipse, it's possible to just highlight the code that needs indenting, right-click, and select Source > Correct inden...
Ul asked 28/1, 2012 at 10:14

2

Solved

I have a long Jinja2 template which has many nested if/for statements. It's very hard to read. I would like to indent the {% %} bits, to make it clearer. However if I do that, the contents of those...
Concentric asked 10/9, 2019 at 6:0

1

Yesterday (monday 2017-05-15) I experienced that my VS17 started making crazy indentations when I pressed return for a new line inside a block of code. Example (json): "Header": { "Title": "Hell...
Embry asked 16/5, 2017 at 7:48

17

Solved

I want to indent a specific section of code in Visual Studio Code. I read How do you format code in Visual Studio Code? that gives shortcuts to indent the whole code, but it doesn't work when sele...
Shig asked 8/11, 2016 at 17:25

4

Solved

I need to keep the comments I add inside a SQL query when I create views from complex queries, in order to come back to views definition more easily. Within pgAdminIII, when I create a view and the...
Orsay asked 6/6, 2017 at 14:7

39

Solved

I know Visual Studio can auto format to make my methods and loops indented properly, but I cannot find the setting.
Retrogress asked 22/4, 2011 at 13:33

2

Solved

How do I change the default indentation in Visual Studio? I want it to always use tabs instead of spaces. Everywhere I've looked it either doesn't tell me how to make tabs the default or is several...
Ephah asked 2/6, 2022 at 1:44

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

5

Solved

I'm currently using Google Colab in order to take advantage of its free GPU. I was trying to modify a code that I copy and pasted from machinelearningmaster.com. However, whenever I try to add a ne...
Leduc asked 25/10, 2019 at 0:11

3

Solved

How can I prevent VS Code from jumping to the bottom of a file after formatting? I select the whole file content (using the Ctrl + A), then I format everything (using the Alt + Shift + F). After th...
Tollefson asked 12/1, 2022 at 12:24

2

Solved

I am using Google Colab to write Python code in their notebooks. Whenever I hit enter after a loop or conditional, the new line is automatically indented, which is good, but it uses only 2 whitespa...
Disabled asked 3/3, 2019 at 16:49

13

Solved

How do I convert tabs to spaces in Notepad++? I found a webpage that suggests it's possible, but I couldn't find any information about how to do it. I would like to be able to do that, because ...
Foretell asked 18/1, 2009 at 12:10

3

Solved

I am using VS Code 1.17.2 with the following extensions installed (Unfortuanetly i can't link them since i don't have enough reputation): Angular 5 Snippets - TypeScript, Html, Angular Material,...

4

Solved

Suppose, that as part of documenting your code (Javadoc) you want to indicate that the relationships between elements using deep indentation. How can I create a nested list as: some element so...
Patina asked 25/6, 2011 at 15:43

9

When I press TAB in nano editor, the cursor will jump with 8 spaces like this: def square(x): return x * x def cube(y): return y * y * y how can I set the tab stop width to 4 spaces to display...
Underplot asked 23/6, 2012 at 23:17

© 2022 - 2025 — McMap. All rights reserved.