The problem is that the IDE doesn't have any support for passing a sketch path via the command line argument, which is what Windows does when you click on a file that is associated with an application. So there is no difference in the behavior between clicking on a sketch in Windows Explorer and just starting the IDE application itself. This deficiency is being tracked here:
opened 06:10PM - 13 May 21 UTC
closed 03:39PM - 23 Feb 22 UTC
conclusion: resolved
topic: code
os: windows
type: imperfection
criticality: high
Windows 10 file explorer: If you select "Open with ... Arduino IDE" for a * .ino… file with the right mouse button, the Arduino IDE (2.0.0-beta6) opens the last processed file. That is unexpected behavior!
There was some work on it here:
arduino:main ← arduino:atl-372--file-association
opened 12:19PM - 31 Mar 21 UTC
### Motivation
We want to add 2 functionalities to the ide
- associate a file … type (namely, `.ino` files)
- allow the drag and drop of a file over the icon (macOS only) and open the relevant files
### Change description
DRAFT: the following changes are just a proposal;
- file association is done via electronBuilder + `template-package.json` configuration
- files to be opened are handled in `electron-main-applicatoin.ts`
### Additional Notes
See comments in the attached [Jira Task](https://arduino.atlassian.net/browse/ATL-372)
### Reviewer checklist
* [ ] PR address a single concern.
* [ ] PR title and description are properly filled.
* [ ] History is clean, commit messages are meaningful.
I would be interested to hear more about those.
ianmorris1960_2:
when in full screen, click on the file menu, and it extends outside of the screen... if you make the window smaller, the file menu is fully visible, but extends outside the IDE window. very strange and annoying.
It sounds like this bug:
opened 10:33PM - 15 Jun 21 UTC
topic: code
type: imperfection
When I go to full screen mode the "file" option in the menu bar is bugged.
St… eps to reproduce the behavior:
1. Click on full screen button
2. Click on "file" in the menu bar
Expected behavior:

Screenshot:

- OS: Windows 10
- Version: 21H1
Does that match with what you are experiencing?
ianmorris1960_2:
how do you report them?
Before submitting a report, please do two things:
Download the nightly build and check whether the issue still occurs there, or if it has been fixed by the developers already:
https://github.com/arduino/arduino-ide#nightly-builds
Search the existing issues to see whether it was already reported:
https://github.com/arduino/arduino-ide/issues?q=
After that, you can submit bug reports and feature requests here:
https://github.com/arduino/arduino-ide/issues/new/choose
Thanks!