Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE!
Make your own .NET IDE! Make your own .NET IDE!
Make your own .NET IDE!
Go Back  Xtreme Visual Basic Talk > > > > Make your own .NET IDE!


Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2005, 11:50 AM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default Make your own .NET IDE!


Well, not really. Have you ever wanted to test a snippet of code without having to go through the whole process of creating a new Visual Studio.NET project though?

Well, now you can. Just compile the attached code, run the program, write the code and run it. It works with C# and VB.NET, just choose which one you want from the menu.

I'm not terribly gifted in the art of developing my own ideas for programs so I should mention that someone else has done this before. It is called the SnippetCompiler.

The program attached here is meant to be a no frills edit and run program so there is no syntax highlighting or printing or even editable references or compiler options yet. It does allow you to open and save snippets as well as redirect the output of the snippet to an output window within the application. If there are compiler errors double clicking them will bring you to the line that caused the error too.

Check it out if you are interested. I should mention that it comes with some prebuilt snippets and has been tested with a number of examples from the Framework SDK.
__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy

Last edited by lebb; 06-22-2005 at 08:55 AM. Reason: See attachment below
Reply With Quote
  #2  
Old 06-22-2005, 08:18 AM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default Update - QuickSnip.NET [v0.1.1]

I've fixed some bugs and added some new features.

Just to highlight some of the new stuff, you can now choose which version of the framework to target, including 2.0, as long as the target version is installed. You can set a couple of compiler options and edit the references, including custom references to assemblies you may have written. Many of the settings will also be saved for use the next time the program runs (uses reboot's AppSettings class). Multiple instances can now be opened without affecting each other [Note: The last one closed wins as far as saved settings are concerned].

Feel free to PM me with questions, comments, suggestions, or bug reports.

Here is the change log:
[Bugs fixed]
- Running a new snippet could cause a previously opened file to be overwritten. Fixed
- Console.ReadLine doesn't work for C# when commented out. Fixed for single line comments only
- Ctrl+V shortcut for Paste doesn't work. Fixed

[new features]
- User can select which version of the framework to target.
- Console.ReadLine warning will now bring you to the identified spot in the editor when you click cancel.
- Added an options dialog.
- Settings get saved for the following items:
- Redirect output
- Compiler
- Framework version
- VB Options
- CS Options
- References
- Tested to work with version 2.0 of the .NET framework.
- Multiple instances can now be used without interfering with each other.
- Removed the "~\out" directory and replaced it with a temporary folder in the PC's temp directory under a new GUID. This folder is removed when the application terminates without error.
- User can edit option explicit and option strict settings for VB compiler
- User can allow/disallow unsafe code for C#
- User can edit references to both built-in assemblies and custom assemblies.

Enjoy!
__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy

Last edited by lebb; 10-14-2005 at 09:55 AM. Reason: Attachment in later post
Reply With Quote
  #3  
Old 10-11-2005, 08:02 AM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default QuickSnip.NET 0.2.2

Here is an updated version of my quick snippet program. I've fixed a couple of bugs and added some new features to make it more usefull. Note that this uses a custom control (source included) for the treeview explorer style navigation of saved snippets so you will need to build that before you can run the main program.

Here is the change log:
0.2.2
[bugs fixed]
- redirect standard output will hang if too much data is written to standard output.
- the warning for the Console.ReadLine should not be case sensetive for VB.

[new features]
- Allow saving of built assembly (build & save)
- Allow the snippet to be built as a console or windows app or class library (build & save only)
- Use a Treeview for easier navigation of saved snippets
- Changed error window to use a listview instead of a textbox
- Save window size, position, state, and size of left and bottom sections.

If you find any problems let me know.
Attached Images
File Type: gif ScreenShot.GIF (25.4 KB, 286 views)
Attached Files
File Type: zip Quicksnip.zip (64.9 KB, 216 views)
__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
Reply With Quote
  #4  
Old 10-12-2005, 12:16 PM
rex64 rex64 is offline
Senior Contributor
 
Join Date: Jul 2003
Posts: 1,171
Default

What does this program do? It looks intereseting.
Reply With Quote
  #5  
Old 10-12-2005, 06:58 PM
John's Avatar
John John is offline
Bit Flipper
 
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
Default

It allows you to store, access, and test snippets of VB.NET or C# code without having to open Visual Studio, or even have it installed on your machine. It is tested to work with all versions of .NET from 1.0 to 2.0 Beta.

It comes in really handy for me when posting an answer to a question here because I can easily test the code snippet before posting.

This is basically just one of those things I developed for myself and decided to share if anyone else was interested.
__________________
Subclassing|Magnetic Forms|Operator Overloading (VB2K5)|QuickSnip.NET

"These Patriot playoff wins are like Ray Charles songs, Nantucket sunsets, and hot fudge sundaes. Each one is better than the last." - Dan Shaughnessy
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE! Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE! Make your own .NET IDE!
Make your own .NET IDE!
Make your own .NET IDE!
 
Make your own .NET IDE!
Make your own .NET IDE!
 
-->