Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Editor 2: Auto indentation issues when nesting struct and/or array declarations #8026

Open
KormexGit opened this issue Oct 17, 2024 — with GM Bug Reporter · 1 comment
Assignees
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached

Comments

@KormexGit
Copy link

KormexGit commented Oct 17, 2024

Description

If you nest a struct or array declaration inside another pair of brackets, auto indentation will go to the indentation of the first brackets instead of indenting for the struct/array. This is with auto indent mode set to "Full".

GameMaker-Beta_X0qw9QntLO.mp4

Some additional weird indentation behavior with nested arrays and struct literals:

GameMaker-Beta_GRkvtoEn3j.mp4

Steps To Reproduce

test = function() {
	struct = {
	//indents to here
	}
}
if thing {
	struct = {
		array : [
	//indents to here
		]
	}
}

struct = {
	//correct here
	array : [
	//no indent for the array brackets here
	]
}

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.634 Runtime v2024.1100.0.658

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

b50266b9-272e-46eb-b0b0-eeab3ae4f794

@gm-bug-reporter gm-bug-reporter bot added ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached labels Oct 17, 2024
@KormexGit KormexGit changed the title Code Editor 2: Auto indentation goes to the wrong level when nesting a struct or array declaration inside another set of brackets Code Editor 2: Auto indentation issues when nesting a struct and/or array declarations Oct 17, 2024
@KormexGit KormexGit changed the title Code Editor 2: Auto indentation issues when nesting a struct and/or array declarations Code Editor 2: Auto indentation issues when nesting struct and/or array declarations Oct 17, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Oct 17, 2024
@KormexGit
Copy link
Author

Image

Same issue also happens when doing nested struct literals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Projects
Status: Backlog
Development

No branches or pull requests

2 participants