|T O P I C R E V I E W
||Posted - Jun 01 2016 : 04:30:49 AM
I have created a snippet for easily creating my class header.
It seems however that it is not using the standard CR/LF but only a LF (I'm on Windows).
What I do is:
-right click in the Solution Explorer on some folder
-Add > New Item...
-Choose Visual C++ and then Header File (.h)
-fill in the name and press Add
In the newly created, empty file: type in the shortcut of my snippet and press enter
It now seems that the file only has LineFeeds.
If I create a new file and first press the Enter key to add a new line,
and only then do the snippet stuff, then I nicely get CR/LF.
The problem is that copy pasting other code in the file ends up with a mixture of both types of line endings...
I also didn't find the (tpl?) file in which my custom snippet was added.
I searched in
and in the folder above, but there no .tpl file was present at all...
This is my snippet:
This is a view on the file after I copy pasted some other code in it:
My VisualAssist version:
VA_X.dll file version 10.9.2098.0 built 2016.05.12
DevEnv.exe version 12.0.40629.0 Professional
msenv.dll version 12.0.40629.0
Comctl32.dll version 6.10.7601.18837
Windows Server 2008 R2 6.1 Build 7601 Service Pack 1 (remote)
36 processors (x86-64, WOW64)
Language info: 1252, 0x409
|5 L A T E S T R E P L I E S (Newest First)
||Posted - Jul 28 2016 : 09:32:52 AM
Just verified with that build and it seems fixed indeed. Thanks!
||Posted - Jul 18 2016 : 10:38:26 PM
case=97552 is fixed in build 2107.
||Posted - Jun 02 2016 : 7:52:16 PM
I have managed to reproduce the problem here:
As a partial work around, can you try turning On:
IDE tools menu -> Options -> Environment -> Documents -> Check for consistent line endings on load
this should help to fix the problem until it can be fixed.
||Posted - Jun 02 2016 : 12:05:33 PM
Related to Create Header File:
No I didn't use that. It seems it is only used when you use the Refactor > Create File... command?
However the location of the new file can't be modified in the dialog and is taken over from the current file you start Create File from?
So you always need to start with a file in a certain folder already? Would be nice if you could just adapt the file location.
However, when I use this way of creating a new file, I don't have the LF only issue....
Related to the Cpp.tpl file:
The %APPDATA% is pointing to C:\Users\bta\AppData\Roaming
but in that folder there is only a DebuggerTools folder and no AutoText folder.
(Note that I am working on a Terminal Server together with other people).
I search in my C:\users\bta\AppData folder for Cpp.tpl files and I get these 2 hits:
C:\Users\bta\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Whole Tomato Software\Visual Assist\10.9.2098.0\Autotext\Latest\Cpp.tpl
(I have both VS2013 and VS2010 installed)
When I look in those files, I don't see my ompheader in both files though, so probably it looks somewhere else?
So unfortunately I can't upload the file containing the definitinon...
||Posted - Jun 01 2016 : 7:49:05 PM
This is odd and I wasn't able to reproduce your problem.
You can find your edited VA snippets here:
They only have LF characters for newline but the end result is correct for me when I save the header file. (both CR and LF are present)
Can you please send in your cpp.tpl using the below form?
So I can try reproducing the problem here. Please paste the URL of this topic for the "Your request" field.
BTW, are you aware the content of a new header file is specified here?
I'm wondering if you modified the content here which may play a role regarding this problem.
Also, you may consider using this place instead of a separate header snippet.