mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Merge pull request #51698 from Paulb23/text-editor-settings
Reorganise text editor settings
This commit is contained in:
commit
cfdac0973c
17 changed files with 308 additions and 286 deletions
|
|
@ -548,10 +548,10 @@ String CSharpLanguage::make_function(const String &, const String &, const Packe
|
|||
String CSharpLanguage::_get_indentation() const {
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
bool use_space_indentation = EDITOR_DEF("text_editor/indent/type", 0);
|
||||
bool use_space_indentation = EDITOR_DEF("text_editor/behavior/indent/type", 0);
|
||||
|
||||
if (use_space_indentation) {
|
||||
int indent_size = EDITOR_DEF("text_editor/indent/size", 4);
|
||||
int indent_size = EDITOR_DEF("text_editor/behavior/indent/size", 4);
|
||||
|
||||
String space_indent = "";
|
||||
for (int i = 0; i < indent_size; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue