Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Suggestions

I have been evaluating your product for a while and I think it is a great product but I like to make some suggestions that I think that will improve the product.
First, I think that could be a good feature to have markers to 'hide' blocks of source code, something like 'MLHIDEON and 'MLHIDEOFF because sometimes it is a pain to 'hide' each line of code individually.
Also, I think that another good feature could be list of functions & subs that the add-in does not extract their parameters. I know this will delay the scanning process but I think it is worth the time you will wait.

What do you thik?

Regards

Germany

These are good ideas, but there are already some ways to hide lines quite quickly.

Firstly, you can use multiple selection in the grid and hide a whole lot of lines in one go. I think that it is best to keep shift pressed when you click on the sun/moon icon, otherwise the other items are deselected. (This is a problem with the grid component which I use).

The second simple way is with the context menu on the sun/moon icon. This has an option to hide all occurrences of the selected string.

The really powerful option is the Filter using regular expressions dialog, which you can access via the tools menu, or via the context menu I mentioned above. Using this dialog, you can easily hide the strings which are parameters to specific functions. The trick is to enter the function name as the search string, and to specify that it should search for the string on the source line (and not within the text string).

Coming back to your suggestions. 'MLHIDEON and 'MLHIDEOFF would be fairly easy to implement, but I want to think about it a little more, before diving in and programming it.

Keeping a list of functions whose parameters are to be ignored is technically very similar to the filter using regular expressions feature, but with a stored set of search strings. Again, I will have to think about this. There are some basic design questions, like where the list should be stored, will the list be project specific or global or both, should it be processed automatically, or only on demand. Above all, I would want to keep it simple!

Phil

The main goal of using 'MLHIDEON and 'MLHIDOFF is that you could be hiding code blocks while coding and not need to go to the grid and select any line(s). It's just done while coding.
The second option also gives you the ability to be completly sure that some functions & sub paremeters are not going to be translated in any way because they are 'banned' by you.

Waiting for your thinkings about this 'new' options...biggrin

Regards

> These are good ideas, but there are already some ways to hide lines quite quickly.
>
> Firstly, you can use multiple selection in the grid and hide a whole lot of lines in one go. I think that it is best to keep shift pressed when you click on the sun/moon icon, otherwise the other items are deselected. (This is a problem with the grid component which I use).
>
> The second simple way is with the context menu on the sun/moon icon. This has an option to hide all occurrences of the selected string.
>
> The really powerful option is the Filter using regular expressions dialog, which you can access via the tools menu, or via the context menu I mentioned above. Using this dialog, you can easily hide the strings which are parameters to specific functions. The trick is to enter the function name as the search string, and to specify that it should search for the string on the source line (and not within the text string).
>
> Coming back to your suggestions. 'MLHIDEON and 'MLHIDEOFF would be fairly easy to implement, but I want to think about it a little more, before diving in and programming it.
>
> Keeping a list of functions whose parameters are to be ignored is technically very similar to the filter using regular expressions feature, but with a stored set of search strings. Again, I will have to think about this. There are some basic design questions, like where the list should be stored, will the list be project specific or global or both, should it be processed automatically, or only on demand. Above all, I would want to keep it simple!
>
> Phil
>
>

Germany

Hi,

I have just uploaded new versions for VS 2005/2008 (version 4.54.0016) and VS 2003 (version 4.01.0005) with support for hidden blocks in the source code.

The blocks are defined with MLHIDEON and MLHIDEOFF comments, more or less as you suggested.

Where previously each text had a sun (=not-hidden) or moon (=hidden) icon, there is now a stars icon to indicate that the text is in a hidden block. (It's fairly pathetic. I don't qualify as a graphic artist.)

Clicking on the sun or moon icon toggles the state between hidden and not-hidden. However, clicking on the stars icon has no effect at all. You can only define a hidden block by editing the source code yourself.

The lines containing the comments MLHIDEON and MLHIDEOFF both belong to the hidden block. Any text on these lines is also hidden. Of course, these comments can be on lines which do not contain any text strings.

I have update the topic in the help file on hiding strings in the source code. You might like to look at this help topic for more information.

By the way, the new version also has a modified dialog for exporting texts to ResX files, where you can select specific forms and usercontrols for the operation, but this is a completely separate change.

Phil