Manually indent code?

In my opinion you don’t need to indent at all but that’s just me :man_shrugging:

For readability, you really need to use some indentation, just click auto format and forget about it.

6 Likes

Yeah, that’s what I do, Replit kind of just indents for me so my code looks half decent. I can’t recall using tabs or space at all.

:open_mouth:

I’m sorry, but what? No indentation?

3 Likes

Does that always work though?

1 Like

Depends on the IDE, language and if you made mistakes in the code …

2 Likes

Yeah, because I never really got used to pressing the tab key, I eventually became dependent on auto-indentation. Thankfully, many IDEs like VSCode (and Replit) do this for you.

An essential thing that coding classes should teach you is indentation: I haven’t taken a class (my class is still on ping pong games on Scratch) which teaches you text-based coding, other than HTML and a sprinkle of CSS and no indentation or formatting tips were taught. (not like Scratch tells you to indent soo)

Can’t indent a block amiright?

Select the block of code you wanna indent and press tab

1 Like

In scratch? i didnt know you could indent scratch blocks

  1. bruh my draft was deleted so i have to retype this
  2. qwerty was probably talking about a text of code, because afaik scratch doesn’t have code you can indent at all lol. Maybe in Scratch 4, I’ve seen “leaks” (note the quotations) that show a text-based edit that can turn into a block code editor (kinda like code.org). The same leaks showed a much nicer UI, more cloud variables, and a nicer commenting area and more. I don’t know how real this is but it’s something to wait for. I saw this a year back (dunno where) and they never really talked about when it was released…
2 Likes

Whoops. Didn’t realize you were talking about scratch.

1 Like

I wish Replit’s worked better

2 Likes

This is why I do:

poetry add black && black .
1 Like

You… you… you don’t indent your code?!?
:skull:

2 Likes

I have an idea now hehehehehehe.