You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Trim trailing white space on save, issue 4383
This commit is contained in:
@@ -131,6 +131,7 @@ class ScriptEditor : public VBoxContainer {
|
||||
EDIT_SELECT_ALL,
|
||||
EDIT_COMPLETE,
|
||||
EDIT_AUTO_INDENT,
|
||||
EDIT_TRIM_TRAILING_WHITESAPCE,
|
||||
EDIT_TOGGLE_COMMENT,
|
||||
EDIT_MOVE_LINE_UP,
|
||||
EDIT_MOVE_LINE_DOWN,
|
||||
@@ -238,6 +239,10 @@ class ScriptEditor : public VBoxContainer {
|
||||
void _add_callback(Object *p_obj, const String& p_function, const StringArray& p_args);
|
||||
void _res_saved_callback(const Ref<Resource>& p_res);
|
||||
|
||||
bool trim_trailing_whitespace_on_save;
|
||||
|
||||
void _trim_trailing_whitespace(TextEdit *tx);
|
||||
|
||||
void _goto_script_line2(int p_line);
|
||||
void _goto_script_line(REF p_script,int p_line);
|
||||
void _breaked(bool p_breaked,bool p_can_debug);
|
||||
|
||||
Reference in New Issue
Block a user