Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Default keyboard shortcut to open an Arduino project (Read 5908 times)
Fex
Junior Member
**
Offline


Posts: 10
Joined: Jul 21st, 2014
Default keyboard shortcut to open an Arduino project
Jun 2nd, 2015 at 9:04pm
Print Post  
Hi there - 


Using Visual Micro for Visual Studio doesn't take long to get used to, great job on it! I noticed that to open Arduino projects there is a specialized FileOpen dialog. 

For my personal productivity I have added a new keyboard shortcut to open this dialog. To also do this, go to:

Tools > Options > Environment > Keyboard

In the command list search for the entry

Visual.Micro.Visual.Studio.Arduino.Helper.SolutionOpenArduinoSketch

My choice of shortcut is "Ctrl + Shift + O, Ctrl + Shift + A". 

This entry was added to my settings file that I cloud sync with my PCs so I'll doubt I'll have to add it again. 

However, it would be nice to have a default shortcut. Just a suggestion though, hope you appreciate it. 

Also I wonder if this couldn't be achieved without a specialized dialog. I reckon it should possible to add the Arduino extension's to the default Open dialog. Not sure how to do that though, perhaps you are missing a basic project factory or template registration?

I noticed that the New Project dialog also doesn't have a entry for the Arduino project template as described:

Quote:

Create a new project of your newly-created project type. In the New Project dialog box the SimpleProject icon appears under Installed templates just above the Other Project Types folder.


https://msdn.microsoft.com/en-us/library/cc512961.aspx
« Last Edit: Jun 2nd, 2015 at 9:12pm by Fex »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Default keyboard shortcut to open an Arduino project
Reply #1 - Jun 2nd, 2015 at 9:27pm
Print Post  
Hi,

Thanks for the tips about using the Visual Studio Customization System and that's a great idea to sync the settings.

You can open an existing project using the normal VS "file>open>project" wizard. You can also open an existing sketch (for the first time) using "File>Open>File". When a sketch is opened for the first time Visual Micro auto creates a VC++ project.

Visual Micro projects are standard VC++ projects. 

The "File>Open>Arduino Project" dialog is mainly for novices because it always opens on the Sketch Book folder where the Arduino Ide saves its sketches.

Therefore, once you have opened for the first time or created a new sketch you will find a standard Visual Studio VC++ project in the sketch folder (I also recommend new users save the solution to the sketch folder)

When you open or create a project using the standard Visual Studio methods you will find the projects appear on the "recent lists" of the File menu and Start Page.


Code
Select All
I noticed that the New Project dialog also doesn't have a entry for the Arduino project template as described 



I guess you are using VS2013, are you looking for the Visual Micro entry in the C++ project templates list File>New>Project>C++
  
Back to top
IP Logged
 
Fex
Junior Member
**
Offline


Posts: 10
Joined: Jul 21st, 2014
Re: Default keyboard shortcut to open an Arduino project
Reply #2 - Jun 2nd, 2015 at 9:50pm
Print Post  
Tim@Visual Micro wrote on Jun 2nd, 2015 at 9:27pm:

You can open an existing project using the normal VS "file>open>project" wizard. You can also open an existing sketch (for the first time) using "File>Open>File". When a sketch is opened for the first time Visual Micro auto creates a VC++ project.

I guess you are using VS2013, are you looking for the Visual Micro entry in the C++ project templates list File>New>Project>C++


Thank you very much, it all makes sense now. To open .ino files simply use Open File, I missed it but I got a friendly confirmation that asks me to create a project. I also like the fact it doesn't do this when I have a solution file opened. 

Great functionality, I guess the additional 'novice' menu item put me off. 

As for the C++ template, found it, thanks again! 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Default keyboard shortcut to open an Arduino project
Reply #3 - Jun 2nd, 2015 at 9:59pm
Print Post  
Great thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint