Edit Code icon
codicon:edit-code
The Edit Code icon (codicon:edit-code) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Codicons
- Author
- Microsoft Corporation
- License
- CC-BY-4.0
- Size
- 24 × 24
- Tags
- editcode
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m9.854 5.146l1.97 1.97l-.707.707l-1.97-1.97a.5.5 0 0 1 .707-.707M2 12V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2.011c.044-.002.086-.013.13-.013c.301 0 .591.059.87.148V4a3 3 0 0 0-3-3H4a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h2.009c.007-.116.018-.233.046-.349L6.218 14H4a2 2 0 0 1-2-2m4.854-1.854L4.708 8l2.146-2.146a.5.5 0 0 0-.707-.707l-2.5 2.5a.5.5 0 0 0 0 .707l2.5 2.5a.5.5 0 0 0 .707-.707zm8.598-2.6a1.87 1.87 0 0 0-2.645 0l-4.829 4.829a2.2 2.2 0 0 0-.578 1.021l-.374 1.498a.89.89 0 0 0 1.079 1.079l1.498-.375a2.2 2.2 0 0 0 1.021-.578l4.829-4.829c.73-.73.73-1.914 0-2.645z"/></svg>How to use the Edit Code icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:edit-code" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:edit-code" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:edit-code" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--edit-code]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:edit-code"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:edit-code"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/edit-code.svg" alt="Edit Code icon" width="24" height="24">Related icons in Codicons
Edit Code icon FAQ
Is the Edit Code icon free for commercial use?
Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Edit Code icon in React?
Install @iconify/react and render <Icon icon="codicon:edit-code" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Edit Code icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/edit-code.svg" alt="Edit Code icon">, or paste the SVG code inline to style it with CSS.