|
||
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Feb 2004
Age: 27
Posts: 1,834
|
Consider this public domain. (source included)
It properly formats the initial spaces in each line inside the delivered file. Just try it on the Program.cs file to see the result. The new version is saved in a file with the same name and .new as suffix. I should have made this to run from RunUO server, so more ppl see this, but oh well, maybe it is good enough to spread the word. I'm currently thinking about more ways to improve this, but that will require some more time. Last edited by Kamuflaro; 08-12-2006 at 10:58 PM. |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Feb 2004
Age: 27
Posts: 1,834
|
Thanks
I had a quick glance at it again, removed an unimportant variable and made it recognize else, for, while. Atm, the system is flawed when it comes to variables named ifbool or fifteen... maybe I got an idea on that later. |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
|
Not to put down your program or anything at all like that, just felt I should mention it in case anyone doesn't know.
As BeneathTheStars may have been referring to in his post (I actually don't know) Visual Studio (at least the Professional version, I don't have the Express Editions so I can't check) can format your files or selections in those files for you. To format a selection, either press ctrl + k then ctrl + f or open the Edit menu, point to the Advaned option, then select Format Selection from the menu that appears. To do the same thing for the entire document, either select Format Document from the menu instead, or press ctrl + k then ctrl + d. This will format the current document or selection to the format that is set up in Tools -> Options, Text Editor -> C# -> Formatting (Or will do a semi-default setting if the current file or selection's type doesn't support setting up the formatting for it). |
|
|
|
|
|
#5 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Location: In your mom
Age: 27
Posts: 4,763
|
Quote:
thats what i do ![]()
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
ctrl + a, ctrl + k, ctrl + f over here, Didn't even really know about the format document option until I actually opened up the menu again. (Mine's a bit better ergonomically as well, switch hands for each key stroke, all on the home row too
)Also, this reminds me for some reason, are there any other people out there who switched to VS 2005 a while ago from VS.NET 2003 and still can't get used to some of the key strokes? Even the ones that were the same in 6.0, like I still never use F7 to build, always ctrl + shift + b. Last edited by Sep102; 08-14-2006 at 08:11 PM. |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Posts: 1,754
|
Or just put in Ctrl+E, Ctrl+D to reformat the document, and Ctrl+E, Ctrl+F to format a selection.
![]() But, as said above, VS.NET can be bothersome to load up all the time. So, good job Kamuflaro.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#11 (permalink) |
|
Forum Expert
|
Yes, Resharper is nice (if you like to get all your programming errors show up without compiling... others find the warnings and stuff just annoying
)Only drawback is the price of 199 USD - but if you could afford Visual Studio 2005 Professional for 799 USD, this should not be too expensive ![]() |
|
|
|
|
|
#12 (permalink) | |
|
Forum Newbie
Join Date: Jun 2005
Age: 31
Posts: 45
|
Quote:
. And ye, i agree that the price can be annoying but there are many ways..... if you know what i mean. |
|
|
|
|
|
|
#13 (permalink) | |
|
Forum Expert
Join Date: Feb 2004
Age: 27
Posts: 1,834
|
Quote:
Best example, try to remove css wc3 compatibility warnings, you will mess up everything. ![]() Or disable RUO house decay the easy way, as if you were no coder... |
|
|
|
|
|
|
#14 (permalink) |
|
Forum Expert
|
Warnings at least lead to inefficient code, consciousnessly ignore them is as stupid as comparing 'standards' established by some self-invited HTML nerds to the serious coding errors.
__________________
Angels are falling the very last time, down they're burning in hate and decline, unfaithful and violent we're breaking the spell, we're god, we're scissor, in heaven and hell! |
|
|
|
|
|
#15 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|