Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#indent

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method SourceFile.prototype.indent
import { SourceFile } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Indents the line at the specified position.

Parameters

pos: number
  • Position.
optional
times: number
  • Times to indent. Specify a negative value to unindent.

Indents the lines within the specified range.

Parameters

positionRange: [number, number]
  • Position range.
optional
times: number
  • Times to indent. Specify a negative value to unindent.