Jump to content

Recommended Posts

Posted (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

 

 

Screenshot 2025-03-23 114804.png

Screenshot 2025-03-23 114821.png

Edited by HezzelQuartz
  • Developers
Posted

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.
  :)

Posted (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 by HezzelQuartz
Posted
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
Posted (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 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.
  :)

Posted
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

Posted (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 :

Indentation3.png.5f3eb37e8b8dde867468d3812446a57e.png

On older Scite versions, with this line, indentation of au3 scripts is 4 :

Indentation4.png.646bc1371490b72fabb17ec637305726.png

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 by pixelsearch

"I think you are searching a bug where there is no bug..."

Posted
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 :D

Musashi-C64.png

"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
Posted
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:

  1. So you ran the SciTE4AutoIt3 installer?
  2. If so
    1. then please Open SciTEConfig
    2. Click on "Other Tools" tab
    3. Click on the "Run AutoIt3/SciTE check" button.
    4. Provide me with the total output of that shown window.

This output will show me all active SciTE settings. :) 

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.
  :)

Posted (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 :P
@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.
      image.png.a9523812a10666a77f4f894f7ab584e8.png  image.png.b91b675fc56a1201996359b39e530186.png  image.png.104ee1fc11581faded2ab56a9d42aa1f.png

PS2: and the user options file can be easily open by clicking the SciTE menu:

image.png.66446851a603a8f74cb3ae9a34bdf758.png 

Edited by argumentum
pics

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
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:

  1. So you ran the SciTE4AutoIt3 installer?
  2. If so
    1. then please Open SciTEConfig
    2. Click on "Other Tools" tab
    3. Click on the "Run AutoIt3/SciTE check" button.
    4. 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

Screenshot 2025-03-25 at 04-40-12 AutoIt Script Editor Downloads - AutoIt.png

Screenshot 2025-03-25 at 04-39-54 AutoIt Downloads - AutoIt.png

Posted
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 :P
@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.
      image.png.a9523812a10666a77f4f894f7ab584e8.png  image.png.b91b675fc56a1201996359b39e530186.png  image.png.104ee1fc11581faded2ab56a9d42aa1f.png

PS2: and the user options file can be easily open by clicking the SciTE menu:

image.png.66446851a603a8f74cb3ae9a34bdf758.png 

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 :P
@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.
      image.png.a9523812a10666a77f4f894f7ab584e8.png  image.png.b91b675fc56a1201996359b39e530186.png  image.png.104ee1fc11581faded2ab56a9d42aa1f.png

PS2: and the user options file can be easily open by clicking the SciTE menu:

image.png.66446851a603a8f74cb3ae9a34bdf758.png 

Ah, yes
I tried and I understand the difference now when I changed Indent size and tab size

  • Developers
Posted

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.
  :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...