HezzelQuartz Posted March 23 Posted March 23 (edited) After I type "If .... then", then I press enter, the position will be two space after indent line How to set scite position to be exactly on the indent line Thank You Edited March 23 by HezzelQuartz
Developers Jos Posted March 23 Developers Posted March 23 Just a wild guess: Do you have these settings in your SciTEUser.properties?: view.indentation.guides=1 tabsize=3 indent.size=4 use.tabs=0 Standard we use: tabsize=4 indent.size=4 use.tabs=1 ... but changing the first line to also use 4 should solve the Issue I guess. If not: provide me with your SciTEUser.properties so I can have a look SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
HezzelQuartz Posted March 23 Author Posted March 23 (edited) 1 hour ago, Jos said: Just a wild guess: Do you have these settings in your SciTEUser.properties?: view.indentation.guides=1 tabsize=3 indent.size=4 use.tabs=0 Standard we use: tabsize=4 indent.size=4 use.tabs=1 ... but changing the first line to also use 4 should solve the Issue I guess. If not: provide me with your SciTEUser.properties so I can have a look Actually, I don't know where is the SciTEUser.properties but, I try to look for it and I think I found it inside "C:\Program Files (x86)\AutoIt3\SciTE" like this below: import au3.UserUdfs import au3.keywords.user.abbreviations I try to copy the standard tabsize 4, indent.size 4, and use.tabs 1, but still not working ------------------------------------------------------------------------------------------------------------------------------- I try to open it from "Options => Open User Options File", then it showed address "C:\Users\LegionPro5\AppData\Local\AutoIt v3\SciTE" so, I also try to find in "C:\Users\LegionPro5\AppData\Local\AutoIt v3\SciTE" but It's not found. Then, I try to change directly from Options => Open User Options File but also still not working For information, when I open user options file, it is empty, nothing inside ------------------------------------------------------------------------------------------------------------------------------- Did I do something wrong? Thank You Edited March 23 by HezzelQuartz
Developers Jos Posted March 23 Developers Posted March 23 How did you install SciTE or is this the version that came with AutoIt3? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
HezzelQuartz Posted March 23 Author Posted March 23 1 hour ago, Jos said: How did you install SciTE or is this the version that came with AutoIt3? First I install autoit v3.3.16.1 [I download from web] Second I install Autoit editor 4.4.6 [I download from web] But sorry What do you mean "How did you install SciTE"?
Developers Jos Posted March 23 Developers Posted March 23 (edited) Did you install only AutoIt3 with the installer, or did you download the separate SciTE4Autoit3 installer? .. or did you download the zip file without any installer? 1 hour ago, HezzelQuartz said: ------------------------------------------------------------------------------------------------------------------------------- I try to open it from "Options => Open User Options File", then it showed address "C:\Users\LegionPro5\AppData\Local\AutoIt v3\SciTE" so, I also try to find in "C:\Users\LegionPro5\AppData\Local\AutoIt v3\SciTE" but It's not found. Then, I try to change directly from Options => Open User Options File but also still not working For information, when I open user options file, it is empty, nothing inside ------------------------------------------------------------------------------------------------------------------------------- This all feels like you are mixing versions, and like to advise you to download the SciTE4Autoit3 installer and use that to update your installation! Edited March 23 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Nine Posted March 23 Posted March 23 Alternatively, you can also use Ctrl-Shift-i to change indentation “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy
HezzelQuartz Posted March 23 Author Posted March 23 10 hours ago, Jos said: Did you install only AutoIt3 with the installer, or did you download the separate SciTE4Autoit3 installer? .. or did you download the zip file without any installer? This all feels like you are mixing versions, and like to advise you to download the SciTE4Autoit3 installer and use that to update your installation! 9 hours ago, Nine said: Alternatively, you can also use Ctrl-Shift-i to change indentation I try Ctrl-Shift-i, It showed "tab size 4", "indent size 4", "Use tabs checked". I think it is by default, but still as I said first when I press enter, the position will not be on the indent line Should I try something else? Thank You
pixelsearch Posted March 24 Posted March 24 (edited) @argumentum I deleted my initial post : what I suggested works for older Scite versions, it won't work for OP's Scite version 4.4.6 (just tested) . So please feel free to remove your like, sorry for the inconvenience. For the record, what I suggested was to add, not only the line "indent.size=4" but also the following line in the file SciTEUser.properties (I got both lines in my properties) : indent.size.*.au3=4 On older Scite versions, without this line, indentation of au3 scripts is 3 : On older Scite versions, with this line, indentation of au3 scripts is 4 : But it doesn't seem to work with Scite 4.4.6 @HezzelQuartz Could you try Scite menu => Options => Use Monospaced Font Who knows, maybe it will solve your indentation issue ? Edited March 24 by pixelsearch Musashi and argumentum 2 "I think you are searching a bug where there is no bug..."
argumentum Posted March 24 Posted March 24 3 hours ago, pixelsearch said: I suggested works for older Scite versions, it won't work for OP's Scite version 4.4.6 I liked it and still do. I'd add yet another like if I could, for the clarification on the relevant version Musashi and pixelsearch 2 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Musashi Posted March 24 Posted March 24 5 hours ago, argumentum said: I'd add yet another like if I could, for the clarification on the relevant version Then I'll just do it pixelsearch and argumentum 2 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
Developers Jos Posted March 24 Developers Posted March 24 14 hours ago, HezzelQuartz said: Should I try something else? Give me a clear answer to my last question you quoted in your last reply but added nothing? The Ctrl-Shift-i simply shows the option to change it, but that doesn't make the change permanent. I need to have all basic info about your installation first before even thinking of the reason for what you see. So: So you ran the SciTE4AutoIt3 installer? If so then please Open SciTEConfig Click on "Other Tools" tab Click on the "Run AutoIt3/SciTE check" button. Provide me with the total output of that shown window. This output will show me all active SciTE settings. pixelsearch 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
argumentum Posted March 24 Posted March 24 (edited) On 3/23/2025 at 12:53 AM, HezzelQuartz said: How to set scite position to be exactly on the indent line * User SciTE info: * SCITE_USERHOME:C:\Users\Tester\AppData\Local\AutoIt v3\SciTE: * SciTEUSer.Properties: *----------------------------------------------------------------------------------------- ... ... indent.size=3 indent.size.*.au3=3 tabsize=3 ... ... change those 3 values ( in the SciTEUSer.Properties file ) to match your desire value, to the same value, and it behaves as it should. "use.tabs=1" because, that's for the tabs ?, unless you would like spaces ?, but running tidy will turn it into tabs. What @Jos said: "Just a wild guess" is right on the money. ...thinking on my feet here, ...I've never changed the defaults on SciTE and I don't see a situation where someone would do different than me but, some people do @HezzelQuartz, Tabs is what I use and to make tabs look 3 or 4 spaces long, those 3 values work fine if, using tabs. If the desire is to use spaces, then you'll run into tidy not doing that, because it uses tabs. That is my experience with v4.4.6 PS: I figure that all you care about is the line not matching the indentation and that is corrected as described above. PS2: and the user options file can be easily open by clicking the SciTE menu: Edited March 24 by argumentum pics Musashi and pixelsearch 2 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
HezzelQuartz Posted March 24 Author Posted March 24 7 hours ago, Jos said: Give me a clear answer to my last question you quoted in your last reply but added nothing? The Ctrl-Shift-i simply shows the option to change it, but that doesn't make the change permanent. I need to have all basic info about your installation first before even thinking of the reason for what you see. So: So you ran the SciTE4AutoIt3 installer? If so then please Open SciTEConfig Click on "Other Tools" tab Click on the "Run AutoIt3/SciTE check" button. Provide me with the total output of that shown window. This output will show me all active SciTE settings. I first download and install AutoIt3 installer then I download and install SciTE4Autoit3 installer This is the source
HezzelQuartz Posted March 24 Author Posted March 24 5 hours ago, argumentum said: 6 hours ago, argumentum said: * User SciTE info: * SCITE_USERHOME:C:\Users\Tester\AppData\Local\AutoIt v3\SciTE: * SciTEUSer.Properties: *----------------------------------------------------------------------------------------- ... ... indent.size=3 indent.size.*.au3=3 tabsize=3 ... ... change those 3 values ( in the SciTEUSer.Properties file ) to match your desire value, to the same value, and it behaves as it should. "use.tabs=1" because, that's for the tabs ?, unless you would like spaces ?, but running tidy will turn it into tabs. What @Jos said: "Just a wild guess" is right on the money. ...thinking on my feet here, ...I've never changed the defaults on SciTE and I don't see a situation where someone would do different than me but, some people do @HezzelQuartz, Tabs is what I use and to make tabs look 3 or 4 spaces long, those 3 values work fine if, using tabs. If the desire is to use spaces, then you'll run into tidy not doing that, because it uses tabs. That is my experience with v4.4.6 PS: I figure that all you care about is the line not matching the indentation and that is corrected as described above. PS2: and the user options file can be easily open by clicking the SciTE menu: change those 3 values ( in the SciTEUSer.Properties file ) to match your desire value, to the same value, and it behaves as it should. "use.tabs=1" because, that's for the tabs ?, unless you would like spaces ?, but running tidy will turn it into tabs. What @Jos said: "Just a wild guess" is right on the money. ...thinking on my feet here, ...I've never changed the defaults on SciTE and I don't see a situation where someone would do different than me but, some people do @HezzelQuartz, Tabs is what I use and to make tabs look 3 or 4 spaces long, those 3 values work fine if, using tabs. If the desire is to use spaces, then you'll run into tidy not doing that, because it uses tabs. That is my experience with v4.4.6 PS: I figure that all you care about is the line not matching the indentation and that is corrected as described above. PS2: and the user options file can be easily open by clicking the SciTE menu: Ah, yes I tried and I understand the difference now when I changed Indent size and tab size
Developers Jos Posted March 24 Developers Posted March 24 Sigh... Note self: Never ask 2 things in one post!!! .. I see you finally understood what I already told you in my first answer in this thread.... so have fun scripting. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now