Alex079 / vscode-avr-helper

Helper extension to simplify code compilation and flashing for AVR chips
MIT License
12 stars 1 forks source link

Default flash area #43

Closed Alex079 closed 1 year ago

Alex079 commented 1 year ago

Select flash memory area by default

leonty commented 1 year ago

That is indeed a useful feature. But I'd offer even more - when clicking on "flash" start programming immediately with flash memory area selected by default. And only, say, having CTRL or ALT pressed at the same time show the enhanced flash menu. Same for the build process. Recently I was debugging an attiny10 project and that's exactly what consumed time - click "build" at the bottom of the display, move cursor to the menu on the top of display, click "build" again, move cursor to the bottom, click "flash", move cursor to the top, click "flash, ok" etc. ESP32 extension offers, for example, single "build and flash" button which is very useful and demands no other actions.

Alex079 commented 1 year ago

This feature was requested from the Marketplace page. I did both: added a new shortcut command and selected "flash" area by default when using "Flash" command. I still need to retest error handling before release. In the meantime, to speed up your example workflow, one could use Ctrl Shift P to open the command list instead of clicking status bar items.

Feel free to suggest a good name for the new command and the new status bar item.

leonty commented 1 year ago

ESP-IDF has just an icon for this action: image

Alex079 commented 1 year ago

published v2.2.0