# Code Formatter
You can format the document with selected characters or full text. Vscode comes with shortcuts to open:shift + alt + f
. Related setting description:
- verilog and systemverilog
function.lsp.formatter.vlog.default.style
- verilog and systemverilog formatting types, supporting three types
kr
,ansi
,gun
- verilog and systemverilog formatting types, supporting three types
function.lsp.formatter.vlog.default.args
- Other parameter inputs and vlog formatting use istyle's webassembly, so please refer to istyle for the parameters to be entered.
This function is based on istyle to achieve, so the full-text formatting is still not perfect, it is recommended to check the always statement block to format, and later will continue to fix related problems.
- vhdl
function.lsp.formatter.vhdl.default.align-comments
- whether need to align comments
function.lsp.formatter.vhdl.default.indentation
- the number of spaces corresponding to the tab