Notifications
Clear all

Arduino IDE 2

71 Posts
7 Users
19 Likes
2,684 Views
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad

Screen Shot 2022 06 27 at 04.38.57

 

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad WOW, now I just discovered the side by side diff type display. That is new AFAIK.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
frogandtoad reacted
ReplyQuote
(@yurkshirelad)
Honorable Member
Joined: 3 years ago
Posts: 475
 
Posted by: @zander

@frogandtoad I have never seen that, how do you invoke it? Here is what I see when I do Cmd-F

Screen Shot 2022 06 27 at 04.23.19

CTRL+SHIFT+F on Windows?

 


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
Topic starter  

@yurkshirelad

Posted by: @yurkshirelad
Posted by: @zander

@frogandtoad I have never seen that, how do you invoke it? Here is what I see when I do Cmd-F

Screen Shot 2022 06 27 at 04.23.19

CTRL+SHIFT+F on Windows?

 

CTRL+SHIFT+F on Windows takes me to a search of the Arduino website, which does work OK.

Best bet is to check: "File -> Advanced -> Keyboard Shortcuts" or "Alt-Ctrl+Comma".

You can also edit the shortcuts there too.

Now that I checked, I don't see a "side by side diff type display", so not sure what @zander meant by that, as I assumed he was describing an in built diff tool feature?


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad YES, I had the Find pane, then two copies of my sketch, one before the changes, one after the changes and IIRC all I had to do was scroll one and they both scrolled and click somewhere to 'accept' the displayed change.

I was hoping you would know about this because I don't remember how I got there.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
frogandtoad reacted
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad Here is a screen grab of the 'diff' display. It's possibly useful, but I 'think' I see errors in the counts, and I am not a fan of tiny fonts but still all good.

I think I also found my exclude feature, Arduino calls it fold. Still playing with it but hopeful.

Screen Shot 2022 06 29 at 10.09.37
Screen Shot 2022 06 29 at 10.14.40

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
Topic starter  

@zander

Posted by: @zander

@frogandtoad Here is a screen grab of the 'diff' display. It's possibly useful, but I 'think' I see errors in the counts, and I am not a fan of tiny fonts but still all good.

I think I also found my exclude feature, Arduino calls it fold. Still playing with it but hopeful.

Screen Shot 2022 06 29 at 10.09.37
Screen Shot 2022 06 29 at 10.14.40

The following link sheds some light on what happened to the split screens featur:

Split Code Windows

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad Not sure if it's the same feature. This is RC8, doing a FIND / REPLACE two windows that scroll in synch showing the usual diff stuff. I stumbled on it when playing with the Find Icon on the left (magnifying glass icon) as opposed to the IDE 1 Command-F (Mac).

Also, what I have been calling excluding (from 50 years ago SPF) is now known as Code Folding. There is about a dozen keystroke cmds related to folding. I haven't tried them all out, but it is an improvement. With SPF I specified where to not show lines, the modern approach is to take away my choice and instead use logical levels like if and else levels.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
Topic starter  

@zander

Posted by: @zander

@frogandtoad Not sure if it's the same feature. This is RC8, doing a FIND / REPLACE two windows that scroll in synch showing the usual diff stuff. I stumbled on it when playing with the Find Icon on the left (magnifying glass icon) as opposed to the IDE 1 Command-F (Mac).

The link I provided sheds some light on what happened to it, since you use a Mac, your download might be different depending on day of download etc, but it appears they are aware of it.

Posted by: @zander

Also, what I have been calling excluding (from 50 years ago SPF) is now known as Code Folding.

Code folding is still available in the rc8 IDE, the drop down carrots are hidden right next to the line numbers on mine if you hover over them - I prefer that over the plus symbols in the IDE code window itself.

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad I knew about IDE 2 having the folding, didn't know it was an option in 1, code folding was a term I knew from compiler optimization 50 years ago so didn't associate it with what I knew as eXclusion. I don't see any + symbols in RC8, just the on demand carets. I would prefer they stay displayed, I wonder if there is a setting for that somewhere?

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
Topic starter  

@zander

Posted by: @zander

@frogandtoad I knew about IDE 2 having the folding, didn't know it was an option in 1, code folding was a term I knew from compiler optimization 50 years ago so didn't associate it with what I knew as eXclusion. I don't see any + symbols in RC8, just the on demand carets. I would prefer they stay displayed, I wonder if there is a setting for that somewhere?

That's right... in the latest (old version) 1x of the IDE, it's an option turned on via the preferences page, and it uses the '-' and '+' character symbols to do the code folding. I don't mind the later style at all.

Cheers


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

Arduino IDE 2.0 RC-9 is now available.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
Topic starter  

@zander

Posted by: @zander

Arduino IDE 2.0 RC-9 is now available.

Thanks Ron, have downloaded it for both Linux and Windows... Linux AppImage working OK, Windows version will not even launch... looks like they have broken it again 🙂


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 5520
 

@frogandtoad The MacOS version is ok.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
Topic starter  

@zander

Posted by: @zander

@frogandtoad The MacOS version is ok.

The Linux version seems fine, though I am still experiencing some freezing on my Windows machine, but I think that's just my machine, as I've screwed around with it a lot lately 🙂  I'll test the latest version in a Windows 8.1 VM and see how that goes, and let you know.

Still haven't finished building my new machine yet... hopefully this week!

Cheers


   
ReplyQuote
Page 2 / 5