Where is the rules for the “Format code” located? Juno is split among many github repos and I’m not sure which one this function resides in. I want to study it as some good code formatting guidelines. One thing I noticed is that it will change e.g.
a = [sin(i) for i in 0:0.1:10]
to
a = [sin(i) for i = 0:0.1:10]
Is there a reason for preferring =
over in
? (2 key-stroke instead of 1?) Thanks!
Personally, I prefer in
as it makes more semantic sense.
3 Likes
This discussion/issue on github provides some reasons for preferring =
vs in
and vice-versa
3 Likes