Skip to content

open *.h files with the Arduino IDE - why not possible? #3736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shiftleftplusone opened this issue Aug 27, 2015 · 9 comments
Closed

open *.h files with the Arduino IDE - why not possible? #3736

shiftleftplusone opened this issue Aug 27, 2015 · 9 comments
Labels
Type: Duplicate Another item already exists for this topic Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Milestone

Comments

@shiftleftplusone
Copy link

Trying to open *.h files with the Arduino IDE - why is this not possible?
I need to revise my own .h header file for my current project, but this is not possible incomprehensibly.

@PaulStoffregen
Copy link
Contributor

Well, it's a good thing you describe these issues so clearly, with such well defined steps to reproduce the problem. Nothing said "incomprehensibly" here!

@shiftleftplusone
Copy link
Author

my English is quite poor - so I admittedly don't understand quite clearly what you want to express with your post...?

file -> open (select from window list "all files"  *.*  )...:
filename.h 

file_open_window

is not possible - what don't you understand?

no_open_h_file

@per1234
Copy link
Collaborator

per1234 commented Aug 28, 2015

Put a blank .ino file in the folder with the same name as the folder(in this case ardustdio.ino) and then open that file, all .h and .cpp files in the folder will also open as tabs. I use the .ino file as a place for notes. If you want to edit files in the libraries folder then see this: #3512

@shiftleftplusone
Copy link
Author

I know that there are workarounds and I already had to use them, my point is to make it possible for the future also for all

*.h
*.cpp
(*.c)

files to be opened and saved and "saved as" by either extension just as if they were *.ino

To have to use any workarounds for that simple task is incomprehensible and unreasonable IMO.

@ffissore
Copy link
Contributor

The reason is that the Arduino IDE is made to edit/compile/upload sketches. It's not notepad

@ffissore ffissore added the Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature label Aug 28, 2015
@ffissore ffissore added this to the Release 1.6.6 milestone Aug 28, 2015
@ffissore ffissore self-assigned this Aug 28, 2015
@shiftleftplusone
Copy link
Author

I know that it's currently made this way, but to have to use any workarounds for that simple task is incomprehensible and unreasonable IMO nevertheless.

*.h and *.cpp files are part of Arduino *.ino projects and so should be editable in the same way, and finally they already can be opened in the Arduino IDE by using weird workarounds.

So please change it anyway!!!

@lmihalkovic
Copy link

Ran into the same issue. Made some IDE changes to be able to include libraries locally inside a sketch folder. These local libraries are editable like the rest of the code in the main sketch folder.
#4050

@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Aug 4, 2017
@ghost
Copy link

ghost commented Mar 27, 2019

Saying Arduino is not Notepad is not an excuse. I too need to see and edit the header files in my project and I can't because of this silly feature. It's annoying to have to open them in Visual Studio.

@deddicarles
Copy link

if you want to edit or open the ".h" and ".cpp" file from arduino library, just open it with notepad and copy paste to the arduino IDE and you can save it as sketch file (".ino") or save again as ".h" and ".cpp" as library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

No branches or pull requests

6 participants