src/editor/EditorStatusBar.js
function _changeIndentWidth(fullPath, value) {
        $indentWidthLabel.removeClass("hidden");
        $indentWidthInput.addClass("hidden");

        // remove all event handlers from the input field
        $indentWidthInput.off("blur keyup");

        // restore focus to the editor
        MainViewManager.focusActivePane();

        var valInt = parseInt(value, 10);
        if (Editor.getUseTabChar(fullPath)) {
            if (!Editor.setTabSize(valInt, fullPath)) {
                return;     // validation failed
            }
        } else {
            if (!Editor.setSpaceUnits(valInt, fullPath)) {
                return;     // validation failed
            }
        }

        // update indicator
        _updateIndentSize(fullPath);

        // column position may change when tab size changes
        _updateCursorInfo();
    }
function _changeIndentWidth(fullPath, value) {
        $indentWidthLabel.removeClass("hidden");
        $indentWidthInput.addClass("hidden");

        // remove all event handlers from the input field
        $indentWidthInput.off("blur keyup");

        // restore focus to the editor
        MainViewManager.focusActivePane();

        var valInt = parseInt(value, 10);
        if (Editor.getUseTabChar(fullPath)) {
            if (!Editor.setTabSize(valInt, fullPath)) {
                return;     // validation failed
            }
        } else {
            if (!Editor.setSpaceUnits(valInt, fullPath)) {
                return;     // validation failed
            }
        }

        // update indicator
        _updateIndentSize(fullPath);

        // column position may change when tab size changes
        _updateCursorInfo();
    }
function _changeIndentWidth ( fullPath , value ) { $indentWidthLabel . removeClass ( "hidden" ) ; $indentWidthInput . addClass ( "hidden" ) ; // remove all event handlers from the input field $indentWidthInput . off ( "blur keyup" ) ; // restore focus to the editor MainViewManager . focusActivePane ( ) ; var valInt = parseInt ( value , 10 ) ; if ( Editor . getUseTabChar ( fullPath ) ) { if ( ! Editor . setTabSize ( valInt , fullPath ) ) { return ; // validation failed } } else { if ( ! Editor . setSpaceUnits ( valInt , fullPath ) ) { return ; // validation failed } } // update indicator _updateIndentSize ( fullPath ) ; // column position may change when tab size changes _updateCursorInfo ( ) ; }
Change indent size
@param {string} fullPath Path to file in current editor
@param {string} value Size entered into status bar
Change indent size