> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hoppscotch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Snippets

> Generate ready-to-use code snippets for your API requests in JavaScript, Python, Shell, and other languages directly from Hoppscotch.

Code snippets allows you to rapidly build your API integration in a variety of languages and frameworks.

## Generate code snippets

To generate a code snippet for your API, locate the **Code Generate** `<>` icon in the right sidebar, alongside collections, environments, and history. Then, select the language in which you prefer to receive your API request.

## Copy code snippets

Choose the language and framework you want to generate the code snippet for and click the "**Copy**" button to copy the code snippet to your clipboard.

## Supported languages

* Shell
* Javascript
* Node
* C
* Java
* PHP
* Objective-C
* Swift
* Python
* Ruby
* C#
* Go
* OCaml

## Preview request setup

1. Open the "**Generate Code**" tab from the sidebar.
2. Click on the drop-down to select the language.
3. Select "**HTTP - HTTP 1.1 Request String**" from the language list.

This displays the current request setup in HTTP 1.1 Request String syntax.
