The indent of a use clause is set during the indent phase shortly after a file is read.
There are several options which allow configuration of use clauses.
Option | Values | Default | Description |
---|---|---|---|
token_after_library_clause |
<integer>
current
'+<integer>'
'-<integer>' |
'+1' |
|
token_if_no_matching_library_clause |
This is an example of how to configure these options.
indent:
tokens:
use_clause:
token_after_library_clause: '+1'
token_if_no_matching_library_clause: '+1'
The following code snippet is used for all examples.
library ieee;
use ieee.std_logic_1164.all;
use work.my_package.all;
The token_if_no_matching_library_clause
option controls the indent of use clauses if there is no matching library clause.
library ieee;
use ieee.std_logic_1164.all;
use work.my_package.all;
library ieee;
use ieee.std_logic_1164.all;
use work.my_package.all;
The token_after_library_clause
option controls the indent of use clauses if there is a matching library clause.
library ieee;
use ieee.std_logic_1164.all;
use work.my_package.all;
library ieee;
use ieee.std_logic_1164.all;
use work.my_package.all;