Hi Avinash Arora,
Thank you for reaching out to us on the Microsoft Q&A forum.
On a Mac laptop, the key combinations differ from Windows. Here’s what you can use:
To save a file: Command + S
To quit the application or editor: Command + Q
If you’re using a terminal-based text editor like nano, you can use CTRL + X
to exit.
These shortcuts should work in most graphical code editors like Visual Studio Code or others. If you’re using a different editor, you might need to check its specific documentation for the correct shortcuts.
If these steps are helpful, please click "Upvote" and "Accept Answer" on this post.