XCInvocationP - XcodeExtKit/XcodeExtBase GitHub Wiki

XCInvocationP

public protocol XCInvocationP

Requirements

lastSelectedLineIdx

var lastSelectedLineIdx: Int?

tabWidth

var tabWidth: Int

contentUTI

var contentUTI: Str

selectLines(startIndex:​endIndex:​)

selects lines in XCode

@discardableResult func selectLines(startIndex: Int, endIndex: Int) -> Bool

insert(_:​after:​)

inserts string at given index in buffer if it has linebreaks (newlines) - will immediately regenerate current buffer and create more lines

@discardableResult func insert(_ str: Str, after index: Int) -> Bool