How to listen for an event from DTE object when a new line is added to code
up vote
0
down vote
favorite
I am writing a visual studio extension (VSIX) that will be logging the code statements in database. So I need a event raised when a code statement is added to code in active window;
c# visual-studio vsix
add a comment |
up vote
0
down vote
favorite
I am writing a visual studio extension (VSIX) that will be logging the code statements in database. So I need a event raised when a code statement is added to code in active window;
c# visual-studio vsix
Checkout ITextBuffer2.ChangedOnBackground
– MickyD
Nov 7 at 8:00
Try to get the instance DTE.Events.TextEditorEvents(EnvDTE.TextDocument) and then use the TextEditorEvents.LineChanged event
– Carlos Quintero
Nov 7 at 12:28
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am writing a visual studio extension (VSIX) that will be logging the code statements in database. So I need a event raised when a code statement is added to code in active window;
c# visual-studio vsix
I am writing a visual studio extension (VSIX) that will be logging the code statements in database. So I need a event raised when a code statement is added to code in active window;
c# visual-studio vsix
c# visual-studio vsix
asked Nov 7 at 7:39
Mohsin Abbas
75
75
Checkout ITextBuffer2.ChangedOnBackground
– MickyD
Nov 7 at 8:00
Try to get the instance DTE.Events.TextEditorEvents(EnvDTE.TextDocument) and then use the TextEditorEvents.LineChanged event
– Carlos Quintero
Nov 7 at 12:28
add a comment |
Checkout ITextBuffer2.ChangedOnBackground
– MickyD
Nov 7 at 8:00
Try to get the instance DTE.Events.TextEditorEvents(EnvDTE.TextDocument) and then use the TextEditorEvents.LineChanged event
– Carlos Quintero
Nov 7 at 12:28
Checkout ITextBuffer2.ChangedOnBackground
– MickyD
Nov 7 at 8:00
Checkout ITextBuffer2.ChangedOnBackground
– MickyD
Nov 7 at 8:00
Try to get the instance DTE.Events.TextEditorEvents(EnvDTE.TextDocument) and then use the TextEditorEvents.LineChanged event
– Carlos Quintero
Nov 7 at 12:28
Try to get the instance DTE.Events.TextEditorEvents(EnvDTE.TextDocument) and then use the TextEditorEvents.LineChanged event
– Carlos Quintero
Nov 7 at 12:28
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53185227%2fhow-to-listen-for-an-event-from-dte-object-when-a-new-line-is-added-to-code%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Checkout ITextBuffer2.ChangedOnBackground
– MickyD
Nov 7 at 8:00
Try to get the instance DTE.Events.TextEditorEvents(EnvDTE.TextDocument) and then use the TextEditorEvents.LineChanged event
– Carlos Quintero
Nov 7 at 12:28