Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Open file and goto line command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pwc
Tomato Guru

138 Posts

Posted - Feb 08 2016 :  12:06:18 PM  Show Profile  Reply with Quote
I often review logs from various analysis tools that put output in standard Visual Studio format (filename followed by line number in parentheses). Right now I have to copy the filename from the log, go to VS and execute the 'open file in solution' command, paste in the filename and open the file, then press ctrl+g to go to the line number which I memorized.

It'd be great to have a command that would check for text on the clipboard and if it is in filename(line#) format, open the file and go to that line.

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 08 2016 :  12:44:32 PM  Show Profile  Reply with Quote
This is something we are considering adding, but currently I don't have any estimate for when we might do this:

case=32171

What is the source of the file names and line numbers? If you are generating the logging in your code, could you use VA Snippets to insert the logging lines, and use the $MethodName$ inside the snippet, to insert the name of the function you are inside?

You can then open the log file as a txt file in the IDE and use Alt-g on the function name, and VA will attempt to jump to this function.

There is also the __FUNCTION__ macro, along with a few others that I did not know about, listed here:

https://msdn.microsoft.com/en-us/library/b0084kay.aspx

that should also help with alt-g.

zen is the art of being at one with the two'ness
Go to Top of Page

pwc
Tomato Guru

138 Posts

Posted - Feb 26 2016 :  4:00:26 PM  Show Profile  Reply with Quote
The primary source of these logs is Microsoft's Code Analysis which we run on a server and import the log file because running it locally takes many hours.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 29 2016 :  9:12:19 PM  Show Profile  Reply with Quote
This makes sense, and I have put in a feature request to import the log file into the output window directly:

case=95379

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 17 2016 :  2:48:13 PM  Show Profile  Reply with Quote
case=32171 is implemented in build 2112.
Go to Top of Page

pwc
Tomato Guru

138 Posts

Posted - Dec 02 2016 :  11:08:19 AM  Show Profile  Reply with Quote
Verified. Thanks for the feature.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000