Most of them just enter gamemode 0 or gamemode 1 at Minecraft, but that doesn't work for me, I always have to write the name of gamemode completely. Does anyone know why this is? I have the Java edition on the latest version.
You are probably playing a new version, i.e. From 1.13 upwards. In 1.8 you can still use 0 or 1. This is due to the MC version.
On the latest version
That's why. That was changed a couple of versions ago. You really have to type in everything. 0 is now "creative", 1 is now "survival" and 2 I think is "spectator".
So / gamemode survival
or / gamemode creative
0 is survival, 1 creative, 2 adventure and 3 spectator
So that you don't have to write letter by letter, the first letter of the command is enough and the rest goes by itself:
1. Press the "-" hyphen key [the chat window with the slash opens.
/
2. Enter the first letter of the command.
/G
3. Press the tab key (located at the top left under Esc (ape) there are 2 arrows on it) and keep pressing until you have the command you want to use.
/ Gamemode
4. Press the spacebar and then press the tab key again as often as necessary.
/ gamemode survival
5. Confirm command. Finished!