# How to indent code in the IDE?

**URL:** <https://clarionhub.com/t/how-to-indent-code-in-the-ide/186>\
**Category:** Tips\
**Created:** [September 15, 2014, 2:21pm UTC](https://clarionhub.com/t/how-to-indent-code-in-the-ide/186 "2014-09-15T14:21:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brahn](https://clarionhub.com/user_avatar/clarionhub.com/brahn/32/756_2.png) [@brahn](https://clarionhub.com/u/brahn)\
**Post date:** [September 15, 2014, 2:21pm UTC](https://clarionhub.com/t/how-to-indent-code-in-the-ide/186/1 "2014-09-15T14:21:27Z")

</div>

There are a few different ways to indent code in the IDE other than excessive use of the spacebar.

## Single line TAB indent

Indent the whole line or from wherever the caret currently is. Same way most editors works!

## Block Indent

Select a part of a line, a whole line or more than one line and hit the TAB key. This opens the “block indent” dialog:  
 ![image](https://clarionhub.com/images/transparent.png)

# Indentation (None/Automatic/Smart)

Depending on your current configuration you might also be able to make use of the `Ctrl+I` keyboard shortcut to initiate automatic or smart indentation:

![image](https://clarionhub.com/images/transparent.png)

Similar to Block Indent, you can select aline or block of text and call the indenter to reformat your block of code.

Clarion has a special options panel for Clarion Specific smart formatter options:  
 ![image](https://clarionhub.com/images/transparent.png)
