Author Topic: Global Configurations / Codewright Migration  (Read 6357 times)

mwilkins

  • Community Member
  • Posts: 28
  • Hero Points: 1
Global Configurations / Codewright Migration
« on: July 23, 2007, 04:05:01 PM »
Hi there,
I am evaluating Slick edit to replace our now dating/unsupported Codewright editor. I am very impressed by slickedit but have a couple of questions :-

1) We tend to use 2 embedded platforms in C. We have our old platform and our new platform, each which has a different compile string etc. I have made different configurations for projects, one for the old platform and one for the new.
I am using a workspace with multiple project, so when I want to make a new project, I would like both of these configs to be available instead of me having to go in there and produce 2 configs for every project. I can't find anyway to do this, only the Debug and Release ones are available on producing a new project.

2) In Codewright, there was a command to indent/un-indent a block with a string. This was handy for commenting out blacks of code for debug...ie with a string such as

    //debug replace later 23/07/07 mjw for ( n=0; n< BIG_NO;n++)
   // debug replace later 23/07/07 mjw {
   // debug replace later 23/07/07 mjw       printf("Hello");
   // debug replace later 23/07/07 mjw }

Is there a similar thing available in Slickedit?

Ok. these are all I have now for now, but I'm sure there will be more as I get things set up. I can live without the slide in string, but the config will be a pain to bring existing projects over.On the up side, there are loads of great improvements over Codewright which would make life easier.

TIA

LBCEi

  • Senior Community Member
  • Posts: 273
  • Hero Points: 21
Re: Global Configurations / Codewright Migration
« Reply #1 on: July 24, 2007, 08:16:32 AM »
For the easier of your two questions, use the slide-in-prompt function.  There is also a slide-out-prompt function to remove the inserted text.  This is very similar to the CodeWright functionality.  You can assign these to key combinations (e.g., Alt-I, and Alt-O).  You will be prompted for the slide-in/out string and you can use up-arrow to recall previous strings.

From another recent convert from CodeWright.

Regards
Les

mwilkins

  • Community Member
  • Posts: 28
  • Hero Points: 1
Re: Global Configurations / Codewright Migration
« Reply #2 on: July 24, 2007, 11:06:00 AM »
For the easier of your two questions, use the slide-in-prompt function.  There is also a slide-out-prompt function to remove the inserted text.  This is very similar to the CodeWright functionality.  You can assign these to key combinations (e.g., Alt-I, and Alt-O).  You will be prompted for the slide-in/out string and you can use up-arrow to recall previous strings.

From another recent convert from CodeWright.

Regards
Les

Thanks Les. Where can I find these Slide-in and out commands? Are they Macros?

TIA

LBCEi

  • Senior Community Member
  • Posts: 273
  • Hero Points: 21
Re: Global Configurations / Codewright Migration
« Reply #3 on: July 25, 2007, 11:24:50 AM »
Yes, they are macros provided with SlickEdit (at least since Version 11.0.2).

Select a block of code using line selection or block selection (right mouse and drag).

Hit escape to get the command line and start typing "slid".  The command line will auto-complete down to the two choices "slide-in-prompt" and "slide-out-prompt".  Arrow down to the one you want and hit enter.  You will then be prompted for the "slide-in" or "slide-out" text.

SlickEdit remembers previous strings so you can use up-arrow to recall previously used strings.

I've bound these two macros to key combinations (Alt-I and Alt-O were my choices).   Use the menu (Tools, Options, Key Bindings....) or, at the command line, use gui-keybindings for setting key bindings.  I also put some buttons on one of the toolbars for this but I've had trouble with my custom icons disappearing every time I upgrade to a new SE version.  The key bindings are probably more convenient, anyway.

I hope this helps
Les


hs2

  • Senior Community Member
  • Posts: 2763
  • Hero Points: 292
Re: Global Configurations / Codewright Migration
« Reply #4 on: August 04, 2007, 12:50:10 AM »
@LBCEi: ;D I also thought that the slide-io and aligneq are part of the product - in fact they are not !
There was a user submitted macro module long time ago which provides these guys ...
I've posted the original stuff here in case you need to re-download it. I don't know if this is still provided by the Slick web.

http://community.slickedit.com/index.php?topic=1930.msg8135#msg8135

HS2