mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #16898] [CLOSED] FEAT: Add Setting for Code Editor Indentation, tab/spaces #39903
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16898
Author: @rgaricano
Created: 8/25/2025
Status: ❌ Closed
Base:
dev← Head:dev-FEAT_switch_tab_spaces_indet_in_code_block📝 Commits (9)
407dc9aMerge pull request #16507 from open-webui/dev2777babMerge pull request #16810 from open-webui/dev1db8decMerge pull request #16821 from open-webui/devab1f635FEAT_switch_tab_spaces_indet_in_code_block - add config varb69762bFEAT_switch_tab_spaces_indet_in_code_block-UserSettingseabc13dFEAT_switch_tab_spaces_indet_in_code_block-f4fbdb6Fix Formatb41c373Fix Format3eb78bcMerge branch 'open-webui:main' into dev-FEAT_switch_tab_spaces_indet_in_code_block📊 Changes
3 files changed (+38 additions, -2 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
src/lib/components/chat/Settings/Interface.svelte(+30 -0)📝
src/lib/components/common/CodeEditor.svelte(+2 -2)📄 Description
FEAT: Add Setting for Code Editor Indentation, tab/spaces
Implementation of setting for Code Editor Indentation as required in https://github.com/open-webui/open-webui/discussions/16892
Add:
CODE_EDITOR_USE_TABScodeEditorUseTabsNote: If necessary refresh the page with code blocks if the change of the User Setting Interface is done with the same page opened.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.