Posted 15 years ago
by BLANC Stéphane
-
Staubli Robotics Suite Product Manager,
STAUBLI
Version: 4.0.0281
Platform: .NET 3.5
Environment: Windows XP (32-bit)
Hi,
I'm having problem with the indent command.
In fact, it becomes extremely slow if you have more than 1000 lines in your file.
It seems that the TextChanged event is fired for each line each time you press the TAB key.
To reproduce it :
* open your sample application : ".NET Language Reflexion with external reference"
* enter 5000 lines of code
* Select All
* Press TAB or Shift + TAB
... it takes more than 10 seconds to increase indentation
Thanks for your help
Stéphane
Remark : In the help file - "Large file handling" section,
you suggest to "Alternatively, make your changes in a StringBuilder and then set the StringBuilder's text back to the document." to prevent too many events but it's not possible because if you replace the entire document you lose all the line indicators...
[Modified at 05/04/2009 09:45 AM]
I'm having problem with the indent command.
In fact, it becomes extremely slow if you have more than 1000 lines in your file.
It seems that the TextChanged event is fired for each line each time you press the TAB key.
To reproduce it :
* open your sample application : ".NET Language Reflexion with external reference"
* enter 5000 lines of code
* Select All
* Press TAB or Shift + TAB
... it takes more than 10 seconds to increase indentation
Thanks for your help
Stéphane
Remark : In the help file - "Large file handling" section,
you suggest to "Alternatively, make your changes in a StringBuilder and then set the StringBuilder's text back to the document." to prevent too many events but it's not possible because if you replace the entire document you lose all the line indicators...
[Modified at 05/04/2009 09:45 AM]