> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/payload-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/payload-studio/customization/editor-settings.md).

# Editor Settings

{% hint style="danger" %}
Some options are limited to <mark style="color:red;">PayloadStudio Pro</mark>. These will be indicated with the <img src="/files/tlP9AaWgm2GpuqsRgbag" alt="Pro" data-size="line">label
{% endhint %}

{% hint style="success" %}
Even though each setting is named to be self explanatory - every setting in PayloadStudio contains an description / explanation tool-tip available **on hover**
{% endhint %}

<figure><img src="/files/hrrJybppLWknfd9tEav3" alt=""><figcaption><p>Setting description tool-tip</p></figcaption></figure>

### `Console Window Size (%)`

Adjust this to change the size of the Console. \
\&#xNAN;*Value is % it will cover the Main Editor.* \
*Default: 45*

### `Console Font Size (px)`

Change the Console, language editor and breakpoint editor default font size. \
\&#xNAN;*Value in px.* \
*Default: 20*

### `Main Editor Font Size (px)`

Change the Editor's default font size. \
\&#xNAN;*Value in px.* \
*Default: 20*

## Editor Customization <img src="/files/tlP9AaWgm2GpuqsRgbag" alt="Pro" data-size="line">

### `Keybindings`

Change keybinding / keyboard shortcut modes\
\
**Options:**

* `Default (ACE)`
* `Vim`
* `Emacs`
* `Sublime`
* `VSCode`

### `Text Wrapping`

Change the editor text wrapping mode

**Options:**

* `Off`
* `View`
* `Margin`
* `40`

<figure><img src="/files/nosph556zeknvXksFsBs" alt=""><figcaption><p>Text Wrapping Options Demo</p></figcaption></figure>

### `New Line Mode`

Change the type of new lines used in the editor

**Options:**

* `Auto`
* `Unix`
* `Windows`

### `Use Soft Tabs`

Checking this will use spaces instead of 'hard' tabs

### `Soft Tab Size`

Number of spaces to use as tab. \
\&#xNAN;*Default: 4*

### `Show Invisible Characters`

Checking this will display spaces and tabs as visible characters in the Editor.

<figure><img src="/files/vFvkaiwlaL4KB20ECOdu" alt=""><figcaption><p>Show Invisible Characters Enabled - showing spaces and line endings</p></figcaption></figure>

### `Highlight Active Line`

Checking this will show the line the cursor is on by highlighting the entire line.

<figure><img src="/files/c3eylUPMyucIwppuAiEz" alt=""><figcaption><p>Highlight Active Line Enabled</p></figcaption></figure>

### `Show Folding Widgets`

Checking this will automatically show folding carats for foldable blocks of code (extensions,functions,ifs,...). This feature is required if Live Extension Validation is enabled

<figure><img src="/files/eHmOUCSA1eekkA9KQXMr" alt=""><figcaption><p>Folding Widget</p></figcaption></figure>

<figure><img src="/files/RHrXpq55WcObajags2O3" alt=""><figcaption><p>Folded Code</p></figcaption></figure>

### `Show Folding Widgets Only On Hover`

Checking this will only show folding carats for foldable blocks of code (`EXTENSION`,`FUNCTION`,`IF`, etc) while the mouse is over the Editor Gutter.

### `Show Gutter (line numbers, folding, info, warnings, breakpoints)`

Checking this will show the bar for Line numbering, folding widgets, extension validation, annotations, breakpoints, warnings and errors. Option provided to ease of use on extremely slim screens - otherwise not recommended as the features previously mentioned rely on this being enabled

### `Auto Indent`

Checking this draws visible columns to help display nested blocks

### `Display Indentation Guides`

Checking this draws visible columns to help display nested blocks

<figure><img src="/files/yO6JR7pfLeCjN7JzuYVO" alt=""><figcaption><p>Indentation Guides Enabled</p></figcaption></figure>

<figure><img src="/files/OrZZ2U1kb7lm9tUOePBL" alt=""><figcaption><p>Indentation Guide Disabled</p></figcaption></figure>

### `Display Print Margin`

Checking this draws an character margin line in the editor

### `Print Margin Width`

Number of characters wide to show print margin at. Default Value: 80

### `Escape key opens console`

Checking this will bind the ESCAPE key to open the console as well as close it

### `Always show Horizontal Scroll Bar`

Checking this will always show the editor's horizontal scrollbar regardless of the document's character width

### `Always show Vertical Scroll Bar`

Checking this will always show the editor's vertical scrollbar regardless of the document's character width


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.hak5.org/payload-studio/customization/editor-settings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
