YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Curly braces automated formatting #4094

Open iampremo opened 1 year ago

iampremo commented 1 year ago

Ticket #201312

Feature Type: feat_addition_ide Description: 1. Typing "{" then pressing enter automatically formats the code appropriately. For example, if I type "if (a == b) {" and press "enter", the following would result where "|" is the cursor position, and has a tab behind it:

if (a == b) { | }

I'd imagine this would be opt-in, but it seems like a very useful default setting, and could be very helpful for people learning to code. Benefit: This is effectively always desired (or is best practices). I know it's only a few chars that it fills in, but it requires moving your hands over to arrow keys and going back and forth. Sometimes I have to do this numerous times within a single and relatively small function. You can see this behavior in VS Code (and I believe Studio). It's super helpful to keep coding and keep your code cleaner! Link:

KeeVeeGames commented 1 year ago

Already implemented