Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Visual Studio Extensibility

$
0
0

I have intercepted the [TAB] key and I am applying my logic to it wherever required. Or else i am returning the handle to the shell.

But it is failing when i press enter and then press [TAB] (not always) but under some scenarios.I am implementing IOleCommandTarget Interface and IVstTextView interface to achieve the same.

For eg,If my caret is at column 4(indent size :3 and Keep Tabs enabled), on pressing [TAB] I want my caret to move to column 6 in the editor.When it is at Column 4 and I press Enter, as per Visual studio Editor behaviour the caret comes to the next line(say to 2 if it was at 1) and to the same column(as there was no content before the caret position in the previous line) and then when i press [TAB] it is going to column 10 instead of following my logic according to which it should go to 6.

Any idea on why it is failing. If required i will provide the piece of code i am using.

 


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>