MCPcopy Create free account
hub / github.com/pulsar-edit/pulsar / decreaseFontSize

Method decreaseFontSize

src/workspace.js:1912–1917  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1910
1911 // Decrease the editor font size by 1px.
1912 decreaseFontSize() {
1913 const fontSize = this.config.get('editor.fontSize');
1914 if (fontSize > 1) {
1915 this.config.set('editor.fontSize', fontSize - 1);
1916 }
1917 }
1918
1919 // Restore to the window's default editor font size.
1920 resetFontSize() {

Callers 3

handleMousewheelMethod · 0.80
workspace-spec.jsFile · 0.80

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected