Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VS Addin - how to handle code editor?

10 views
Skip to first unread message

Feier Vlad

unread,
Oct 21, 2012, 6:06:02 AM10/21/12
to
Hello,

I'm currently writing an add-in for VS. At a certain moment, I want to open some files in the code/text editor. I have 2 scenarios:
1) I noticed you can't open a file twice in the editor (or is there some way that I can?). In this case, I'm willing to use the horizontal pane splitter (the horizontal bar that exists in the top of the editor, initially hidden - you can drag and drop the little box in the top-right corner of any file code editor (having an up/down splitter icon on it) - and your splitter will appear - then you can move the splitter up and down, having the same file rendered in both upper and lower pane). I couldn't find any idea or hint on how to move this splitter programmatically.
2) At some moments I want to show 2 different files on the screen, in the editor, by snapping one to the left side, and the other one to the right side. VS offers this functionality (drag a file tab and there will be rendered some hints on the screen, about the way you can snap/dock that file). Still I didn't find on how to open a file, resize its editor and snap it to the left/right or any other side (all programmatically).

Anyone could give me a hint?
Thanks,
Vlad
0 new messages