Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Cython extension for vscodeNew to Visual Studio Code? Get it now.
Cython extension for vscode

Cython extension for vscode

Giovanni Torres

|
41 installs
| (1) | Free
Syntax highlighting for Cython (.pyx, .pxd, .pxi) files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cython for Visual Studio Code

Syntax highlighting for Cython source files.

Supported file types

Extension Description
.pyx Cython implementation files
.pxd Cython declaration files (headers)
.pxi Cython include files

Highlighted syntax

Declarations

  • Keywords: cdef, cpdef, ctypedef, fused, cppclass
  • Struct, union, and enum declarations

Types

  • C types: void, char, short, int, long, float, double, bint, Py_ssize_t, wchar_t, Py_buffer, and more
  • Fixed-width integers: int8_t, uint8_t, int32_t, uint64_t, intptr_t, etc.

Modifiers

  • public, readonly, inline, api, packed, extern, signed, unsigned, const

Imports

  • cimport and include directives
  • extern from blocks

C++ support

  • cppclass, new, namespace
  • C++ exception specs: except +, except +*

Cython decorators

  • @cython.boundscheck, @cython.wraparound, @cython.cdivision, and all other @cython.* decorators

Parallelism

  • prange and parallel from cython.parallel
  • GIL management: nogil, gil

Compile-time

  • Conditionals: DEF, IF, ELIF, ELSE

Constants

  • NULL

Python fallthrough

  • All standard Python syntax via embedded source.python grammar

License

MIT

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