If you use VSCode and install the AWS extension, you can:
Open the desired bucket in S3 in the AWS Explorer that you get in your VSCode window
Right-click the desired file in the AWS Explorer, and select "Download As...", select the location, and press "Download"
Edit your file locally
Right-click again the file in the AWS Explorer and select "Upload to Parent...", select the file, and press "Upload"
xxxxxxxxxx
If you use VSCode and install the AWS extension, you can:
Open the desired bucket in S3 in the AWS Explorer that you get in your VSCode window
Right-click the desired file in the AWS Explorer, and select "Download As...", select the location, and press "Download"
Edit your file locally
Right-click again the file in the AWS Explorer and select "Upload to Parent...", select the file, and press "Upload"