MCPcopy Create free account
hub / github.com/cogentcore/core / TabsToSpaces

Method TabsToSpaces

texteditor/buffer.go:928–933  ·  view source on GitHub ↗

TabsToSpaces replaces tabs with spaces over given region; end is *exclusive*

(start, end int)

Source from the content-addressed store, hash-verified

926
927// TabsToSpaces replaces tabs with spaces over given region; end is *exclusive*
928func (tb *Buffer) TabsToSpaces(start, end int) {
929 autoSave := tb.batchUpdateStart()
930 defer tb.batchUpdateEnd(autoSave)
931 tb.Lines.TabsToSpaces(start, end)
932 tb.signalMods()
933}
934
935// SpacesToTabs replaces tabs with spaces over given region; end is *exclusive*
936func (tb *Buffer) SpacesToTabs(start, end int) {

Callers

nothing calls this directly

Calls 3

batchUpdateStartMethod · 0.95
batchUpdateEndMethod · 0.95
signalModsMethod · 0.95

Tested by

no test coverage detected