Page 1 of 1
when indenting several lines spaces are inserted instead of
Posted: 21.07.2021 06:34
by bul
bonjour à tou[te]s
if you select several lines to insert a tabulation, spaces are inserted
➜ tab
. space
origine
ok
indent line 3
ok
indent lines 4 and 5 simultaneouslyCode: Select all
if True:
➜ a=1
➜ b=2
....c=3
....d=4
IndentationError: unindent does not match any outer indentation level
not important except with Python !
Sincerely
Posted: 21.07.2021 07:27
by uvviewsoft
Seems one of "indent_" options ("indent_size") has not Ok value, post here your file 'user.json'?
Posted: 21.07.2021 11:46
by bul
thank you for your attention
user.json
Code: Select all
{
"allow_wide_chars" : true,
"caret_shape" : 4,
"font_name__linux" : "Hack",
"font_size__linux" : 14,
"font_size_b__linux" : 13,
"font_size_i__linux" : 13,
"font_size_bi__linux" : 13,
"ui_font_name__linux" : "Hack",
"ui_font_size__linux" : 10,
"gutter_bookmarks" : false,
"gutter_fold" : false,
"indent_kind" : 3,
"links_regex" : "(https?://|ftp://|ssh://|mailto:|magnet:|www\\.)[\\[\\]A-Za-z0-9/:%_+.,;#?!@&=-]+",
"log_sessions" : false,
"margin" : 80,
"numbers_center" : false,
"ovr_on_paste" : true,
"ovr_sel" : true,
"pylib__linux" : "libpython3.9.so.1.0",
"ruler_show" : true,
"saving_trim_spaces" : true,
"show_cur_column" : false,
"show_cur_line" : true,
"staples_style" : 0,
"tab_size" : 4,
"tab_spaces" : false,
"ui_max_history_edits" : 0,
"ui_max_history_files" : 0,
"ui_max_history_menu" : 0,
"ui_menu_show" : true,
"ui_non_text" : 4,
"ui_notif_confirm" : 0,
"ui_one_instance" : true,
"ui_reopen_session" : false,
"ui_sidebar_show" : false,
"ui_statusbar_show" : false,
"ui_tab_variable_width" : true,
"ui_title_path" : true,
"ui_theme" : "util",
"ui_theme_syntax" : "util",
"ui_toolbar_show" : false,
"unicode_proportional" : true,
"unicode_wide_allowed" : false,
"wrap_indented" : false
}
Posted: 21.07.2021 11:51
by uvviewsoft
Ok in user.json, but what is your "lexer Python.json" ? "indent_" options in it?
PS. if you won't find "indent_" options in Python-config, send me your "settings" folder to email support(at)uvviewsoft.com
Posted: 21.07.2021 12:18
by bul
python.json
Code: Select all
{
"tab_spaces": false,
"tab_size": 4,
"indent_size": 4
}
edit : mail envoyé, merci !!
Posted: 21.07.2021 12:30
by Shovel
I just checked this for myself, and encountered a bit of weird behavior, maybe related?
On fresh install of v1.139.0.0, in new untitled tab, on pressing Tab multiline selection is indented by two spaces regardless of what I set in statusbar for tabulation. I can set it to "Tab: 10" and it will still be 2 spaces.
It is fixed if I set any lexer for the document and switch back to "no lexer"
Posted: 21.07.2021 14:15
by uvviewsoft
@bul
See Cud's descrption of option "indent_size"
Indentation for Indent/Unindent commands
N>0: indent is N spaces
N<0: indent is abs(N) tabs
N=0: indent is from options "tab_size" and "tab_spaces"
so you must set it 0 ! current '4' means '4 spaces'.
Posted: 21.07.2021 14:22
by uvviewsoft
Posted: 21.07.2021 16:04
by bul
user.json
lexer Python.json
it works
sorry for the unnecessary inconvenience
I was sure I put 0!
thanks again