Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Goladus
on Nov 2, 2007
|
parent
|
context
|
favorite
| on:
How many Java programmers does it take to round up...
To format code, add a whole bunch of returns and then indent 4-5 spaces
(5 returns and 6 spaces later whitespace does what I want)
I think it's supposed to be 4 and 4, but I had some issues once and since then I just pile on returns and spaces until I get bored.
nostrademons
on Nov 5, 2007
[–]
I thought it's 2 and 1:
print 'Hello world'
Yup, that's it. A blank line before the indented block, then any amount of indentation.
Reddit is 2 and 4.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: