Typing a tilde(~) on a MacBook
To be very specific, I use a MacBook Air 15" M2 2023 (Base model).
While trying to type in a tilde using my MacBook keyboard, I couldn't find any direct keyboard shortcut to do that. I searched the web a bit and didn't really find any way that worked for my case. But then, I accidentally found how it's done. So, I just wanted to share this, might help someone.
Step 1: Hold down shift button and then press the button next to the number 1
Step 2: Release both buttons
Step 3: Press the space button
And voilà, a nice little tilde
+
release both and then press (space)
MacBook Air (M2, 2023)