mLipok Posted 14 hours ago Posted 14 hours ago What is the status of the SciTE > VSCode development environment migration? To put it another way, have all SciTE functionalities (including those from DynamicLUA) been ported to VSCode add-ons? What additional benefits does VSCode offer compared to SciTE + DynamicLUA? donnyh13 1 Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24
WildByDesign Posted 13 hours ago Posted 13 hours ago I am using version 1.6.0 of the VSCode extension from @LoganCH and it has DynamicLUA. I believe some of it was added more recently but don't recall the specific version. But if I add a function, say _ChooseFont() and don't have the include, it will add #include <Misc.au3> at the top. Autocomplete for function names and variables also works very well. 52 minutes ago, mLipok said: What additional benefits does VSCode offer compared to SciTE + DynamicLUA? I would say just a much more modern experience overall that is easier on your eyes. For what it's worth, I did use SciTE initially for about 6 months and got used to it. Then I moved to VSCodium for all of my AutoIt stuff for the past 1.5 years approx. Like any change, there is an adjustment period where everything feels new and unusual. But I could never go back to SciTE now. My workflow is much faster in VSCodium. mLipok 1
mLipok Posted 12 hours ago Author Posted 12 hours ago I see that portable is also possible https://code.visualstudio.com/docs/setup/portable Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24
WildByDesign Posted 12 hours ago Posted 12 hours ago 5 minutes ago, mLipok said: I see that portable is also possible Yes. I run both VSCodium and VSCode as portable. I mostly use VSCodium though as I prefer open-source whenever possible. For either one, as long as you create a subdirectory named data, they both become portable and all of your settings and extensions are stored there. It makes it much easier when upgrading. ioa747 1
WildByDesign Posted 11 hours ago Posted 11 hours ago Although with portable, you wont get a right-click context menu in Explorer by default. So I have a .reg file for VSCode/VSCodium that does that: Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code" "Icon"="D:\\Tools\\VSCode\\Code.exe,0" [HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] @="\"D:\\Tools\\VSCode\\Code.exe\" \"%1\"" You would need to modify that depending on where your VSCode binaries are stored.
WildByDesign Posted 11 hours ago Posted 11 hours ago Also important, Jos made an add-on for VSCode that allows for the Ctrl+Shift+Z shortcut to run the wrapper and detect/add missing includes as well. I am pretty sure that is in the beta SciTE full installer. Very helpful addition. donnyh13 1
donnyh13 Posted 10 hours ago Posted 10 hours ago I can't speak for the porting of all features etc., I know I do miss Jos' way of dealing with declared and used variables in file, or from other files? e.g., In one file I can be working on a function for LibreOffice and need to use a variable declared in a Constants file that was used somewhere else in the current file, but currently, unless I missed something, Logan's won't display that unless it is declared in the same file. Even if the variable has been used in the file, Logan's won't offer it up. I have found the extension by genius does however offer declared constants from other files. But I won't compare the two, each has their pluses, and someone more experienced in the two would do a better job. For VSCode in general, I miss the Scite folding style, especially of comments, or more specifically headers. You just can't fold function headers, unless they are indented, which mkaes things messier to navigate. This is due to VSCode relying on indentation for folding, and also that you can't really (that I know of), set up a folding rule for semicolon comments. A few benefits I have come to like, and that makes me use VSC more often: The ability to "Find" and "Replace" in a folder of files, e.g.: If I want to replace the name of a Constant or Function that was used quite a bit, I can do that with the find and replace quickly, and even see the results of each file it's found in. I know Scite can find and replace also in all open files, but it's a little more tedious. You can integrate GitBlame into the files to see a history of the line's changes. You can do a split view of files, allowing you to compare or modify two files at once. There's a few more benefits I find, but can't think of currently. With that said, I still use Scite for general work because I have one or two lua scripts that I made to do basic tasks. These could be converted to what VS Code uses, but I haven't taken the time to do it, or to research it. Also Scite is a bit quicker for my computer still. And I am used to Scite, Best regards, Donny WildByDesign, genius257 and ioa747 3 LibreOffice UDF Scite4AutoIt Spell-Checker Using LibreOffice WPS Office adapter — Use MS Word UDFs with WPS Office! LibreOffice API Inspector tools Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
Developers Jos Posted 9 hours ago Developers Posted 9 hours ago (edited) Just my 2 cents: vsc doesn't have any dynamic autocomplete like i made in the latest version of the lua script, but it can add, as mentioned, the missing includes at the top by using the stuff that is buildin into autoit3wrapper for some years now. For me, on the odd occasion I do some au3 coding, the standard autocomplete in VS Code is in 90% of the cases good enough, and then I trigger the missing includes to get that part done. Edited 8 hours ago by Jos donnyh13 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.
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