Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Wordwrapping comments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 19 2006 :  1:38:58 PM  Show Profile  Reply with Quote
since you guys already have code in there to wordwrap code, what about comments?

say i had a function declaration like:


     // Prepares the property descriptor for the given propertyId to the be added to a page. If ReturnedDescriptor.m_propertyId is zero, the property is not to be added at all.
    virtual void PreAddPropertyToPageInternal(int propertyId, 
     const CWinsonPageDescriptor& PageDescriptor,
     CWinsonPropertyDescriptor& ReturnedDescriptor)const override;


is there any way there could be a word wrap command that would reformat this automatically (respecting the column indicator) to:

// Prepares the property descriptor for the given propertyId to the
// be added to a page.
// If ReturnedDescriptor.m_propertyId is zero, the property is not to
// be added at all.
virtual void PreAddPropertyToPageInternal(int propertyId,
const CWinsonPageDescriptor& PageDescriptor,
CWinsonPropertyDescriptor& ReturnedDescriptor)const override;

maybe same with code as well? this would be EXTEREMELY USEFUL.

thanks

:)

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 20 2006 :  5:57:37 PM  Show Profile  Reply with Quote
where do you think we have word wrap code? off hand nothing that reminds me of word wrap is coming to mind, so it could be very obvious and i am just not spotting it

my main concern here is that we are moving towards the "code formatting" idea here, which is something we try to keep well clear of, since it can be such a mine field.

isn't there some form of macro that ships by default with one of the IDE's that does something like this for comments? or am i remembering a plugin / feature in vim?

zen is the art of being at one with the two'ness
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 20 2006 :  7:26:03 PM  Show Profile  Reply with Quote
oh never mind, i thought you had something like that here:
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4933

too bad you don't want to get into code formatting a little bit :(
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 21 2006 :  01:33:51 AM  Show Profile  Reply with Quote
I am pretty sure that Vim can do that.

I would use GC.

Joe Pizzi
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 21 2006 :  2:16:39 PM  Show Profile  Reply with Quote
sorry but what is VIM? where can i get it?

thanx
Go to Top of Page

bugfix
Tomato Guru

Germany
324 Posts

Posted - Jul 21 2006 :  2:56:01 PM  Show Profile  Reply with Quote
http://en.wikipedia.org/wiki/Vim_%28text_editor%29

http://www.mf-sd.de
Go to Top of Page

swinefeaster
Tomato Guru

310 Posts

Posted - Jul 21 2006 :  3:36:19 PM  Show Profile  Reply with Quote
and VAX plugs into it, right?
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 22 2006 :  12:56:22 AM  Show Profile  Reply with Quote
Um, no. But, Vim has a feature (at least for older versions of VS) where it can replace the editor in VS, allowing you to use it instead of the VS editor. I shudder to think how this might interact with VA.

Sounds like a recipe for disaster.

Joe Pizzi
Go to Top of Page

tom_seddon
Tomato Guru

162 Posts

Posted - Jul 22 2006 :  08:40:51 AM  Show Profile  Reply with Quote
http://www.viemu.com/

Works well with VAX. Much better than vim+VS.NET plugin, though if you don't *have* to use VS.NET I always found vim+ctags+custom keyboard shortcuts pretty good.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 22 2006 :  2:24:26 PM  Show Profile  Reply with Quote
you can pick up vim its self from here http://www.vim.org/

as someone who has two quotes on the vim addict's list i can attest to its power and flexibility. in fact i still do quite a lot of my editing in vim.

having said that, vim has two main modes (edit and control) and more keyboard shortcuts than even i know what to do with it has a lot going for it, but it is overkill if you just want word wrap control.

using vim to control the IDE is something i have looked into, the basic idea is you never touch the IDE, you do all of your work, including compiling, via vim and pick up the compile error list in vim rather than the IDE.

under normal conditions vim is *totally* separate to the IDE, and there is no way at all that the VA plugs into vim.

as for code formatting, look at GC and see how many options it has... now consider this, i still could not make it do what i wanted, because it did not have enough options. code formatting is something that whole tomato are very loath to touch, for good reasons.

tom, have you used viemu? i have often wondered about this, but the only features of vim i normally miss in the IDE are increment number, decrement number, move to character and macro's. do you know if it offers any of these?

as for vim verses the IDE, the main problem with vim is no intellisense. ctags and tag completion is GOOD, but it is not the same. i know vim 7 now offers some form of intellisense, but i have yet to compile it on my UNIX box to try this out.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000