Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>x86 AT&T Assembly (GAS)New to Visual Studio Code? Get it now.
x86 AT&T Assembly (GAS)

x86 AT&T Assembly (GAS)

Alex Matthes

|
4 installs
| (0) | Free
Syntax highlighting for x86 assembly in AT&T/GAS (GNU Assembler) style — supports registers, instructions, directives, SSE/AVX, and more
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

x86 AT&T Assembly (GAS) — Syntax Highlighting for VS Code

Rich syntax highlighting for x86 assembly written in AT&T/GAS (GNU Assembler) style.

Features

  • Instructions — Full coverage of x86 data movement, arithmetic, logic, control flow, string operations, and more, all with size suffix support (b, w, l, q)
  • Registers — 64/32/16/8-bit general purpose, segment, control/debug, FPU, SSE/AVX (xmm/ymm/zmm), and flags registers
  • Immediates — $-prefixed decimal, hex, binary, octal, and symbol references
  • Directives — GAS section, data, alignment, macro, conditional, and CFI directives
  • Labels — Function and local label definitions
  • Comments — Line (#) and block (/* */) comments
  • Strings — Double-quoted strings with escape sequences and single-quoted characters
  • SSE/AVX — Common SIMD instruction mnemonics with optional v prefix

Supported File Extensions

  • .s
  • .S
  • .asm

Example

    .section .text
    .global _start

_start:
    movq $1, %rax       # syscall: write
    movq $1, %rdi       # fd: stdout
    leaq msg(%rip), %rsi
    movq $13, %rdx      # length
    syscall

    movq $60, %rax      # syscall: exit
    xorq %rdi, %rdi
    syscall

    .section .data
msg:
    .asciz "Hello, world!"

Theme Compatibility

This extension uses standard TextMate scope names, so it works out of the box with any VS Code color theme — Dark+, One Dark Pro, Dracula, Catppuccin, Gruvbox, and others.

Installation

Search for x86 AT&T Assembly (GAS) in the VS Code Extensions panel, or install from the Visual Studio Marketplace.

Contributing

Found a missing instruction or a highlighting bug? Open an issue or pull request on GitHub.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft