Curly Braces on Keyboard: How to Type Them on a Laptop

Published on Mar 08, 2026
Updated on Mar 08, 2026
reading time

This article is also available in:French, German, Spanish, Portuguese, Romanian, Italian
Detail of an Italian laptop keyboard showing keys for curly braces.AI-generated image

AI-generated images Details

Typing curly braces on the keyboard can seem like an insurmountable challenge for those new to programming or advanced text formatting, especially when using an Italian QWERTY Keyboard on a laptop. Unlike Anglo-Saxon layouts, Italian keyboards do not feature a dedicated and visible key for curly brackets ({ and }). This definitive guide is designed to provide you with all the methods, shortcuts, and tricks to type these essential symbols on any operating system, without the need for a full numeric keypad.

Advertisement

Why Are Curly Braces Fundamental?

Before diving into key combinations, it is important to understand the significance of these characters. Curly braces are the syntactic backbone of countless programming languages. They are used to define code blocks in languages such as C, C++, Java, JavaScript, PHP, and C#. Furthermore, they are essential in writing CSS stylesheets and structuring data in JSON format. Not knowing how to type them quickly drastically slows down the workflow of any developer or computer science student.

You might be interested →

Prerequisites: Know Your Hardware

Curly Braces on Keyboard: How to Type Them on a Laptop - Summary Infographic
Summary infographic of the article “Curly Braces on Keyboard: How to Type Them on a Laptop” (Visual Hub)

To follow this guide, you need to identify two elements of your laptop:

Advertisement
  • The Operating System: Combinations change radically between Windows, macOS, and Linux distributions.
  • The Keyboard Layout: This guide assumes you are using the standard Italian layout (QWERTY). If you have an imported laptop, the rules might vary.
Read also →

How to Type Curly Braces on Windows (Without Numpad)

Close-up of hands typing curly braces on a laptop keyboard.
Mastering keyboard shortcuts for curly braces boosts the efficiency of programmers and students. (Visual Hub)

According to official Microsoft documentation regarding keyboard shortcuts, there are several native methods to generate these characters on Windows, even in the absence of a numeric keypad (Numpad).

Method 1: The Standard Combination (AltGr)

This is the quickest and most universal method for Windows laptops with an Italian layout. It uses the AltGr key (located to the right of the spacebar) in combination with the Shift key and the square bracket keys.

  • For the open curly brace { : Press AltGr + Shift + [ simultaneously (the key with the letter è and the open square bracket).
  • For the closed curly brace } : Press AltGr + Shift + ] simultaneously (the key with the symbol + and the closed square bracket).

Method 2: The Ctrl + Alt Alternative

If the AltGr key on your laptop is faulty or unresponsive, Windows allows you to emulate its function using the Ctrl + Alt combination.

  • Open curly brace { : Ctrl + Alt + Shift + [ (key è).
  • Closed curly brace } : Ctrl + Alt + Shift + ] (key +).

Method 3: Character Map (Emergency Solution)

If the physical keyboard has hardware issues, you can resort to Windows software tools:

  1. Press the Windows key and type Character Map.
  2. Open the application.
  3. Search for the symbols { and } in the list.
  4. Click on Select and then on Copy to paste them into your text editor.
Read also →

How to Type Curly Braces on Mac (macOS)

As highlighted by Apple guidelines for accessibility and shortcuts, the macOS operating system handles special characters differently than Windows. On MacBooks, the combination is slightly more ergonomic.

The Official Apple Shortcut

On Apple laptops with an Italian keyboard, the key is Option (often also labeled as Alt, located next to the Cmd key).

  • For the open curly brace { : Press Option + Shift + [ (the key with the è).
  • For the closed curly brace } : Press Option + Shift + ] (the key with the +).
Discover more →

How to Type Curly Braces on Linux (Ubuntu, Debian, etc.)

In Linux environments, the Italian keyboard layout is mapped very intelligently to favor programmers, making the insertion of curly braces extremely fast.

The Linux Shortcut

On most Linux distributions with GNOME or KDE desktop environments and Italian layout, it is not necessary to use the Shift key.

  • For the open curly brace { : Press AltGr + 7.
  • For the closed curly brace } : Press AltGr + 0.

Note: If this combination does not work, your system might be configured to emulate Windows behavior (AltGr + Shift + è/+).

Read also →

Advanced Methods for Programmers

If you write code for several hours a day, three-key combinations can cause fatigue. Here are some advanced solutions.

1. Using ASCII Codes (with simulated keypad)

Even if your laptop does not have a physical numeric keypad, many models (such as ThinkPads or Dell Latitudes) allow you to simulate it by activating the Num Lk key (often via the Fn key). The keys U, I, O, J, K, L, M become numbers.

  • ASCII Code for { : Alt + 123
  • ASCII Code for } : Alt + 125

2. Switching to US International Layout

The ultimate solution adopted by 90% of senior programmers is to abandon the Italian layout at the software level. By setting the keyboard to English (United States – International) in the operating system settings, the curly braces will be located directly on the [ and ] keys (near the Enter key), accessible simply by pressing Shift + [ and Shift + ]. Italian accents can be typed by pressing the apostrophe followed by the vowel (e.g., ‘ + e = é).

Troubleshooting: Common Issues Resolution

What to do if the described combinations do not produce the desired result?

  • Issue: I type AltGr + Shift + è and a different symbol appears.
    Solution: You have inadvertently changed the keyboard language. On Windows, press Windows + Space or Alt + Shift to scroll through installed languages and return to “Italian (Italy)”.
  • Issue: The AltGr key does not work.
    Solution: Use the alternative combination Ctrl + Alt + Shift + [ / ]. If the problem persists, there might be a hardware failure or background software (like video card utilities) that has “hijacked” that specific shortcut.
  • Issue: On Mac, a strange mathematical symbol appears.
    Solution: Make sure to also press the Shift key. Pressing only Option + è/+ will result in square brackets or other typographic symbols.

In Brief (TL;DR)

Curly braces are fundamental symbols for programming, but Italian laptop keyboards do not feature a dedicated key to type them quickly.

This guide illustrates the key combinations needed to create these special characters on Windows, macOS, and Linux distribution operating systems.

Advanced methods such as ASCII codes and the use of international layouts are also explored to further optimize developer workflows.

Conclusions

disegno di un ragazzo seduto a gambe incrociate con un laptop sulle gambe che trae le conclusioni di tutto quello che si è scritto finora

Mastering the insertion of curly braces on a laptop is a rite of passage for every aspiring developer. Whether you are using Windows, macOS, or Linux, shortcuts based on AltGr or Option will soon become muscle memory. If you plan to write a lot of code, we strongly recommend experimenting with the US International layout: it will require a few days of adaptation, but it will drastically increase your typing speed in the long run.

Frequently Asked Questions

disegno di un ragazzo seduto con nuvolette di testo con dentro la parola FAQ
How do you type curly braces on a Windows laptop keyboard?

To type these symbols on a Windows computer with an Italian layout, you must simultaneously press the AltGr, Shift, and square bracket keys. Specifically, use the key with the accented letter e to open it and the one with the plus symbol to close it. If the AltGr key does not work, you can use Ctrl and Alt as an alternative.

How to type curly braces on a Mac or MacBook?

On Apple computers with an Italian keyboard, the correct combination requires the Option key, often indicated as Alt. You must press Option, Shift, and the square bracket keys together, meaning the accented e for the opening phase and the plus symbol for closing. Remember that omitting the Shift key will produce different symbols.

Why isn’t the combination for curly braces working on my computer?

The most common problem involves accidentally changing the keyboard language. On Windows, you can resolve this by pressing the Windows and Space keys to return to the Italian layout. Alternatively, if the AltGr key is faulty, you can use the combination Ctrl, Alt, Shift, and the bracket keys to achieve the same result.

How to insert curly braces using ASCII codes without the numeric keypad?

Many laptops allow you to simulate the numeric keypad by activating the Num Lock function via the Fn key, transforming some keyboard letters into numbers. Once this virtual keypad is activated, you can hold down the Alt key and type the codes one hundred twenty-three for the open brace and one hundred twenty-five for the closed one.

What is the best keyboard layout for programmers who use these symbols often?

The most efficient solution for those who write a lot of code consists of switching to the English United States International layout via the operating system settings. This software configuration positions the symbols directly next to the Enter key, making them accessible with a simple two-key combination. Italian accents remain typeable by combining the dedicated key with vowels.

Francesco Zinghinì

Engineer and digital entrepreneur, founder of the TuttoSemplice project. His vision is to break down barriers between users and complex information, making topics like finance, technology, and economic news finally understandable and useful for everyday life.

Did you find this article helpful? Is there another topic you’d like to see me cover?
Write it in the comments below! I take inspiration directly from your suggestions.

AI-generated questions and answers

The questions and comments below are generated by an artificial intelligence system and the answers come from Simply, the TuttoSemplice.com virtual assistant. They do not come from real users.

AI-generated question

Great guide, but I have a weird issue. I try to use AltGr + Shift + [ on my HP Windows laptop keyboard to get the open curly brace, but it just types a normal square bracket. My AltGr key seems to work fine for the @ symbol though. What am I doing wrong here?

Simply · AI virtual assistant

Hello! This is a quite common issue. Sometimes specific software or graphic card utilities (like AMD or Intel control panels) ‘hijack’ keyboard shortcuts. First, try the alternative method mentioned in the guide: Ctrl + Alt + Shift + [ (using the key with the è). If that doesn’t work, check if your keyboard language accidentally switched to English by pressing Windows + Spacebar to return to the Italian layout. Keep me posted!

AI-generated question

I actually prefer using the ASCII codes because my muscle memory is used to it from my old desktop pc. But on my Lenovo Thinkpad without a numpad, holding Alt and typing 123 on the top number row doesn’t work at all. Is there a specific trick to insert curly braces using ASCII codes without the numeric keypad on a laptop?

Simply · AI virtual assistant

Hi, great observation! You are absolutely right, the top number row doesn’t work for ASCII codes. On a laptop without a dedicated numpad, you need to simulate the numeric keypad first. You have to activate the ‘Num Lock’ function (usually Fn + NmLk or similar, depending on your exact Lenovo model). This turns the U, I, O, J, K, L, M keys into a virtual numeric keypad. Hold Alt and type 123 using those specific letter keys, and it will work!

AI-generated question

I’ve been struggling for months trying to type curly brackets on my Dell laptop. I write a lot of CSS and hitting three keys every time was driving me crazy. Taking your advice and switching to the US International layout was a game changer 🙂 Just one question though: how do I type the Euro symbol on the US International layout?

Simply · AI virtual assistant

Hi, I’m really glad the article helped you! Switching layouts is definitely the best keyboard layout choice for programmers. To type the Euro symbol on the US International layout, you can simply use the combination Right Alt (AltGr) + 5. Let me know if that works for your workflow!

AI-generated question

Thanks for the tutorial! I just switched from Windows to a MacBook Pro for my web dev bootcamp. I tried pressing Option + [ to type curly braces on a Mac but I’m getting a completely different math symbol instead. Do I need to change some Mac accessibility settings?

Simply · AI virtual assistant

Welcome to the macOS world! You don’t need to change any settings, you are just missing one key. On Apple computers with an Italian keyboard, you must press Option + Shift + [ (the key with the accented e) simultaneously. If you omit the Shift key, it will give you different typographic symbols. Try adding Shift and it should work perfectly for your coding bootcamp!

Icona WhatsApp

Subscribe to our WhatsApp channel!

Get real-time updates on Guides, Reports and Offers

Click here to subscribe

Icona Telegram

Subscribe to our Telegram channel!

Get real-time updates on Guides, Reports and Offers

Click here to subscribe

Advertisement
Simply - Virtual Assistant
Hi! I am Simply, TuttoSemplice virtual assistant. How can I help you today?
Condividi articolo
1,0x
Table of Contents