John KuehJohn Kueh

file code icon

Phosphor · file-code · MIT

Download SVG

The Phosphor file code icon depicts a document with a code snippet, commonly used to represent files containing programming code or code-related settings in user interfaces.

Common uses

  • Button to open code editor
  • File type indicator for source code
  • Link to API documentation

Use it in React

Install
npm i @phosphor-icons/react
Import & render
import { FileCode } from '@phosphor-icons/react';

<FileCode size={24} />

Styles

Phosphor ships this icon in 6 styles — each its own import:

regular
<FileCode size={24} />
thin
<FileCode size={24} weight="thin" />
light
<FileCode size={24} weight="light" />
bold
<FileCode size={24} weight="bold" />
fill
<FileCode size={24} weight="fill" />
duotone
<FileCode size={24} weight="duotone" />

Details

Library
Phosphor (1,512 icons)
License
MIT
viewBox
0 0 256 256
Category
office
Keywords
documentsofficeeditortechnology & developmentfilecodecode filesource code documentprogramming filescript file

FAQ

What does the file code icon represent?
It represents a document containing programming code. It's used in UIs to signify code files, code settings, or related development resources.
How do I use this icon in React?
You can import and use it like this: `import { FileCode } from '@phosphor-icons/react'`. Then render it as a component: `<FileCode size={24} />`.
What is the license for this icon?
The Phosphor icon library, including the file-code icon, is available under the MIT license.

Related icons

The same idea in other libraries, and near matches in Phosphor.

Looking for something else? Search Phosphor and 4 more libraries by description →

The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →