Preference to have small dot or something for [space]

#1

preference so can turn on and off
many times i have this problem where i acidentally add a space behind a id, then the message doesnt react and doesnt have error and i go crazy

0 Likes

#2

Yeah, an option to show whitespace characters would be pretty sweet. @mats.gisselson, had this been suggested before?

@illuminae have you reported this via Help->Suggest Feature?

1 Like

#3

I dont think so

0 Likes

#4

Space in code brakes the code?

1 Like

#5

what

0 Likes

#6

like for example in the layer id property of a tilemap i wrote "floor "(space behind floor)
and when i try to call that layer with “floor” it wond react because “floor” and "floor " is different

0 Likes

#7

Oh, you meant inside string quotes.

1 Like

#8

Perhaps we should just trim whitespace from the ends of ids? Not sure when you’d ever want to have whitespace around these.

4 Likes

#9

But - that already exists? Both tab and space have a character showing (albeit not very strongly).
22

1 Like

#10

I think he means that these whitespaces are not highlighted inside input fields in the properties panel in the editor.

2 Likes

#11

Whitespace shenanigans?

1 Like