{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/5308","repository_url":"https://api.github.com/repos/arduino/Arduino","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/5308/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/5308/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/5308/events","html_url":"https://github.com/arduino/Arduino/issues/5308","id":173664919,"number":5308,"title":"Specify target board / settings in .ino code / comments.","user":{"login":"JamesNewton","id":419392,"avatar_url":"https://avatars.githubusercontent.com/u/419392?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesNewton","html_url":"https://github.com/JamesNewton","followers_url":"https://api.github.com/users/JamesNewton/followers","following_url":"https://api.github.com/users/JamesNewton/following{/other_user}","gists_url":"https://api.github.com/users/JamesNewton/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesNewton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesNewton/subscriptions","organizations_url":"https://api.github.com/users/JamesNewton/orgs","repos_url":"https://api.github.com/users/JamesNewton/repos","events_url":"https://api.github.com/users/JamesNewton/events{/privacy}","received_events_url":"https://api.github.com/users/JamesNewton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-28T20:10:00Z","updated_at":"2016-10-25T16:48:35Z","closed_at":null,"body":"As the IDE is used for more and more boards / devices, it becomes increasingly confusing for new users to select the correct device in the Tools / Boards menu... and increasingly annoying for me to have to reset it all the time as I bounce from one project to another.  Personally, this is really bad when working on ESP-8266 projects as there are soooo many settings under tools. \r\n\r\nIt would be really nice to have some way to include that information IN the source code... in the main .ino file. Just open the .ino, and the IDE automatically selects the correct device, port, programmer, CPU speed, etc...\r\n\r\nOne way of doing it would be with simple comments in a specific format at the start of the file which would trigger an \"offer\" from the ide to copy those settings. This would allow the settings to double as documentation, and preserve the standard C/C++ functionality. e.g. it wouldn't make the file unique to this IDE. \r\n\r\nfor example:\r\n\r\n// Tools / Board: Generic ESP8266 Module\r\n// Tools / CPU Frequency: 160 MHz\r\n// Tools / Port: COM32\r\n\r\netc...\r\n\r\nWhich should result in a dialog that offers to set those settings. You can always cancel it... If you approve, it should set the board FIRST, then set the next line, then the next, and so on. If the board isn't available, the IDE can direct you to the board library manager.\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/256092496","html_url":"https://github.com/arduino/Arduino/issues/5308#issuecomment-256092496","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/5308","id":256092496,"user":{"login":"mikaelpatel","id":2774083,"avatar_url":"https://avatars.githubusercontent.com/u/2774083?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaelpatel","html_url":"https://github.com/mikaelpatel","followers_url":"https://api.github.com/users/mikaelpatel/followers","following_url":"https://api.github.com/users/mikaelpatel/following{/other_user}","gists_url":"https://api.github.com/users/mikaelpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelpatel/subscriptions","organizations_url":"https://api.github.com/users/mikaelpatel/orgs","repos_url":"https://api.github.com/users/mikaelpatel/repos","events_url":"https://api.github.com/users/mikaelpatel/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelpatel/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T16:48:35Z","updated_at":"2016-10-25T16:48:35Z","body":"@JamesNewton What I am trying to address is not so much the format/syntax or what file to store the settings in as when and who will interpret them. There are a lot of open questions which I think has added to the confusion. 1) Is the setting changed by the menues? 2) Should it be allowed to be changed in the comment section in the sketch (user edit of text)? 3) If so should the IDE menues be changed accordling? 4) If it is the wrong syntax? 5) If the board is not installed 6) If the board is not corrected/port available. I think you get the picture. "}}
{"actor":{"display_login":"mikaelpatel"}}