Re: edSharp as a C/C++ IDE?

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 10 Jul 2010 06:35:01 -0400

At this point, there is not a built-in way to compile and run a program in a single step. I think you could achieve this behavior by modifying the CompileCommand setting so that it calls a batch file that runs the program after a successful compilation. Alternatively, to achieve a two keystroke, run command, you could define the Prompt Command (Alt+F5) so that it runs your program (pressing Enter after Alt+F5 would be necessary after you have configured the command). Finally, you could define a snippet that runs the pprogram (Alt+V and Enter on the snippet file).


What I usually do is have a console window open in the directory where the executable is created. Once I have run the executable once, I can simply up arrow and press Enter to run it again because DOS keeps a command history.

Jamal


On 7/9/2010 3:47 AM, Øyvind Lode wrote:
Jamal:
I'm trying to compile and run the program at the same time.
For example if I press CTRL+F5 (run without debugging) in VS C# my program is 
compiled and run in a console window.
If compile error occurs I have the option to open the error window.
If there are no compile errors the program runs and when finished I'm returned 
to the code editor.

This is the only feature I miss from the IDE.

I currently have a port of MinGW installed in C:\MinGW32.
GCC version = 4.5.0.

Is it possible to make edSharp compile and run automatically?
It would be very neat!

Please let me know if I'm unclear.

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Midence
Sent: 9. juli 2010 06:38
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: edSharp as a C/C++ IDE?

Hey, I use mingw.  Taht's exciting to know.  Been using Edsharp as my
text editor for about a week and a half now.  Jamal, you did a
fantastic job on it, I want to tell you.  Question is, how will Mingw
know that you are compiling a c plus plus project?  Mingw can compile
c with the gcc commmand, java with the gj command and c++ with the g++
command.

Thanks.
Alex

On 7/8/10, Jamal Mazrui<empower@xxxxxxxxx>  wrote:
Have you tried the MinGW compiler setting (on the Control+Shift+F5
list)?  This assumes MinGW is installed in the default location.
Control+F5 should then compile.  If you find ways of tweaking settings
such as CompileCommand, AbbreviateOutput, JumpPosition, etc., please let
me know, and I will include such improvements in the next EdSharp
distribution.

Cheers,
Jamal



On 7/8/2010 4:50 AM, Řyvind Lode wrote:
Hi all:

Is it possible to configure edSharp to use gcc/g++ compilers?
What I would like to accomplish is to press F5 or CTRL+F5 to compile and
see
the output in a console.

Right now I need to write my code in edSharp, save it, switch to the
command
line and run gcc.
If compilation fails, read the error messages and switch back to edSharp
and
so on.

If compilation completes without errors etc I can run the executable
manually to see my app in action.
Then switch back to edSharp to do some more coding and on and on it goes.


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: