Keep tabs option in VS 2015 is not preserved
When I select "Keep tabs" option in Visual Studio 2015 I get "Insert spaces" option selected on the next run of Visual Studio.
Visual Studio: 14.0.23107.0 TypeScript: 1.5.3.0
perhaps related to #4014
Same versions and result as NeuwirthD. Frustrating and creating a lot of trash diffs on source that was all 'keep tabs' previously. The CurrentSettings.vssettings file keeps getting overwritten by a InsertTabs: false value on VS close. Changing the option in the UI writes the correct value to the file at the time changes are saved.
Every member of our team experience the same problem. Any workarounds?
@ahmad-farid can you take a look
Any updates on this?
@paulvanbrenk can you take a look.
I don't reproduce this on VS 2015 + TS 1.6
Do you have multiple instances of VS open, maybe on multiple machines? Do you sync your settings (see the synchronized settings option)? Do you have other extensions installed?
Hadn't noticed this was just for Typescript... I'm seeing this issue with C#, whether I set the language setting directly or through "All languages". It appears to lose the setting when you close VS (or perhaps just opening a new instance is enough). Happens every time, and loses "keep tabs" and "smart tabs" setting. Vs2013 continues to work correctly.
The number of instances of VS doesn't matter, it happens even if I open only one instance of VS. I use VS on one machine. Yes, I synchronize settings. Yes, I have several other extensions installed.
@paulvanbrenk I can confirm, with Typescript 1.6.3.0 the original issue doesn't reproduce anymore.
After upgrading to TypeScript 1.6.3.0 I can still reproduce this issue.
@NeuwirthD which extensions do you have installed, does it reproduce when you disable all of them? Does it reproduce for other languages?
No extensions at all on my install. I am signed into msdn account though, so maybe sync related...
Can you please check whether it still repros while signed out? And can you please send me the files under %localappdata%\Microsoft\visualstudio\settingslogs? Thanks!
Yep signed out and same issue. Tried setting in "All languages" and just C#. Exited and re-opened VS, and C# reverted to "Insert spaces". I could send a video if it'll help.
Will you be able to send the setting logs I requested?
For me it only happens for TypeScript language.
any chance that #4014 is addressed too?
Thanks to @NeuwirthD we've identified the root cause of the problem. We'll be fixing it in a future release (I'm not sure which one yet), but as a workaround you can do this:
- Shut down all running instances of VS.
- Delete value “Insert Tabs” under HKCU\Software\Microsoft\Visualstudio\14.0\Text Editor
. - Find the .pkgdef file that sets the value DefaultToInsertSpaces for your language. For TypeScript, this is %programfiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript\TypeScriptVisualStudio.pkgdef.
- In the .pkgdef file, change DefaultToInsertSpaces from 1 to 0.
- Run devenv /setup.
@JoshuaBStevens, I am using Visual Studio 2015 Community Edition Update 3 and I still see this with C#. Set the setting, exit and restart Visual Studio and it's back. Settings synchronization is also turned off... A grep of the Visual Studio common extensions folder does not make it immediately obvious which file I would edit to save myself from this space-ridden nightmare.
user@localhost:/mnt/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft$ grep -Ri "DefaultToInsertSpaces" .
./ReportingServices/ReportDesigner.PkgDef:"DefaultToInsertSpaces"=dword:00000000
./Roslyn/Language Services/VisualBasicPackageRegistration.pkgdef:"DefaultToInsertSpaces"=dword:00000001
./TypeScript/TypeScriptVisualStudio.pkgdef:"DefaultToInsertSpaces"=dword:00000001
./Web/ASPX/HTML_Editor_Reg.pkgdef:"DefaultToInsertSpaces"=dword:00000001
./Web/ASPX/HTML_Editor_Reg.pkgdef:"DefaultToInsertSpaces"=dword:00000001
./WebClient/Language Service/Microsoft.VisualStudio.JSLS.pkgdef:"DefaultToInsertSpaces"=dword:00000001
./WebClient/Language Service/Microsoft.VisualStudio.JSLS.pkgdef:"DefaultToInsertSpaces"=dword:00000001
Binary file ./XamlLanguageService/Microsoft.VisualStudio.DesignTools.XamlLanguageService.dll matches
user@localhost:/mnt/c/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/CommonExtensions/Microsoft$