Code::Blocks Forums

User forums => Help => Topic started by: pisco on December 07, 2009, 07:27:45 pm

Title: Deactivate the overwrite mode
Post by: pisco on December 07, 2009, 07:27:45 pm
Hey
I like codeblocks very much ,but I have a big problem with the overwrite mode I activated inadvertently. Please can somebody explain me how to change this mode into insert mode?

I thank you in advance for your time and will be happy if you answer to my topic.

greetz pisco
Title: Re: Deactivate the overwrite mode
Post by: Seronis on December 07, 2009, 07:31:48 pm
This isnt C::B specific but you hit the 'insert' key instead of the 'delete' key at some point.  That toggles insert mode.  Just press it again
Title: Re: Deactivate the overwrite mode
Post by: pisco on December 07, 2009, 07:36:50 pm
which is the insert or the delete key??? :shock:

greetz from Austria
Title: Re: Deactivate the overwrite mode
Post by: Seronis on December 07, 2009, 07:55:05 pm
"insert" key toggles "insert" mode.
Title: Re: Deactivate the overwrite mode
Post by: pisco on December 07, 2009, 08:02:01 pm
I think I get my wires crossed..... can you please tell me exact shortcut, because I do not want to start c::b again and  again

greetz

Title: Re: Deactivate the overwrite mode
Post by: frithjofh on December 07, 2009, 08:18:00 pm
hi,

it's not a shortcut. normally you have a key labeled "Insert" on you keyboard. it is situated in the small block of keys above the arrow keys.

regards

nausea
Title: Re: Deactivate the overwrite mode
Post by: pisco on December 07, 2009, 08:24:37 pm
thx thx thx

have a nice evening
pisco
Title: Re: Deactivate the overwrite mode
Post by: zabzonk on December 07, 2009, 08:50:46 pm
I'd be very happy if CB (and all other editing software) offered an option to completely disable toggling between insert and overwrite modes. I never, ever, ever want to use overwrite  mode in a text editor, and toggling it by mistake is far too easy.
Title: Re: Deactivate the overwrite mode
Post by: killerbot on December 07, 2009, 09:32:12 pm
I'd be very happy if CB (and all other editing software) offered an option to completely disable toggling between insert and overwrite modes. I never, ever, ever want to use overwrite  mode in a text editor, and toggling it by mistake is far too easy.

You know : how crazy this may sound : I completely agree.
That's indeed also something I never use, and only activate it by mistake.
Title: Re: Deactivate the overwrite mode
Post by: ukimiku on December 07, 2009, 09:49:02 pm
And remove the CAPSLOCK key from the keyboard. Who needs it?
Title: Re: Deactivate the overwrite mode
Post by: MortenMacFly on December 08, 2009, 07:04:46 am
And remove the CAPSLOCK key from the keyboard. Who needs it?
A little off-topic: You can do this (under Windows) easily with "keytweak" (http://webpages.charter.net/krumsick/). Works very nice, I usually map the chaps lock key simply to another usual "shift".
Title: Re: Deactivate the overwrite mode
Post by: zabzonk on December 08, 2009, 10:45:49 am
Quote
A little off-topic: You can do this (under Windows) easily with "keytweak"

Yes, I've tried this. Unfortunately I use two different keyboards with my dev machine, and switching between them doesn't seem to play too well with keytweak. I've also tried autohotkey, which plays better with the two keyboards, but has other issues.

Really, what is needed from the CB point of view is a fully configurable keyboard map, like that provided by VC++. In VC++ I simply map the Insert key to a macro that does nothing.
Title: Re: Deactivate the overwrite mode
Post by: dmoore on December 08, 2009, 10:32:43 pm
For fun I did this:

EditorTweaks plugin

Code
svn checkout http://svn.berlios.de/svnroot/repos/cbilplugin/branches/EditorTweaks

This version:
1/ insert key disabled in editor (will make an option in the future)
2/ option to toggle word wrap by right click in menu -> editor tweaks -> word wrap
3/ option to toggle line numbers by right click in menu -> editor tweaks -> show line numbers

on second thoughts, 2 and 3 should be in the edit menu. maybe in the next version...
Title: Re: Deactivate the overwrite mode
Post by: Jenna on December 08, 2009, 10:39:33 pm
on second thoughts, 2 and 3 should be in the edit menu. maybe in the next version...

Do they not interfere with the checkboxes in "Settings -> Editor" ?
Or do you toggle the appropriate settings in the config-manager also ?
Title: Re: Deactivate the overwrite mode
Post by: dmoore on December 08, 2009, 10:40:53 pm
on second thoughts, 2 and 3 should be in the edit menu. maybe in the next version...

Do they not interfere with the checkboxes in "Settings -> Editor" ?
Or do you toggle the appropriate settings in the config-manager also ?

these are transitory changes to the per editor settings. the settings->editor are still the defaults when you open/create a file. I haven't tested for nasty side effects :)