Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

user custom for '>', '<' and '='

(1/1)

mmkider:
If I keyin '>', '<'  and  '=', I want editor to show the  '>','<'  and '='.
but editor seem do nothing.
I find this link http://forums.codeblocks.org/index.php?topic=2639.0
I think space ability as '>', '<' and '='.
so I make this patch,see below:

                case WXK_SPACE:
      + case '>':
      + case '<':
      + case '=':
      {
          m_pList->AddChar(c);
         Destroy();
         event.Skip();
         break;
      }


[attachment deleted by admin]

MortenMacFly:

--- Quote from: mmkider on March 22, 2006, 06:12:15 am ---If I keyin '>'

--- End quote ---
This would break something like pMyPointer->WhatEver.
However, I've extended the cclist as following:

--- Code: --- case WXK_SPACE:
case '(': case '[': case '<': case '=':

--- End code ---
...which works quite well (so far). I am currently doing some more resarch if the control key is pressed (e.g. CTRL+S for saving the file will not work if CodeCompletion window is pop-up). If I get this to work I'll file a patch.
With regards, Morten.

Navigation

[0] Message Index

Go to full version