T O P I C R E V I E W |
thameera |
Posted - Mar 12 2012 : 11:41:20 PM I have selected 'Highlight the current line' option and chose 'Foreground and Background'. When I go to Tools | Options | Environment | Fonts and colors | VA X Current Line, it shows only the options to change the formatting of the dotted line style, not the foreground/background style. (And yes, I've tried restarting Visual Studio).
Any help would be appreciated.
(I'm using Visual Assist 10.6.1830.0 and Visual Studio 2008) |
12 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Mar 15 2012 : 8:15:47 PM Thank you for the update, it is good to have a working solution for situations like this |
thameera |
Posted - Mar 15 2012 : 12:14:24 PM It works like a charm! I have the Item Background option now. Thanks a lot for your time! Much appreciated. :) |
feline |
Posted - Mar 15 2012 : 11:27:52 AM Can you please create a .vbs file, perhaps "delete_cache.vbs" and paste in the following code:
Const HKEY_CURRENT_USER = &H80000001
' Object used to get StdRegProv Namespace
Set wmiLocator = CreateObject("WbemScripting.SWbemLocator")
' Object used to determine local machine name
Set wshNetwork = CreateObject("WScript.Network")
' Registry Provider (StdRegProv) lives in root\\default namespace.
Set wmiNameSpace = wmiLocator.ConnectServer(wshNetwork.ComputerName, "root\\default")
Set objRegistry = wmiNameSpace.Get("StdRegProv")
' Deletes Key with alle subkeys
sPath = "Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache"
lRC = DeleteRegEntry(HKEY_CURRENT_USER, sPath)
Function DeleteRegEntry(sHive, sEnumPath)
' Attempt to delete key. If it fails, start the subkey
' enumration process.
lRC = objRegistry.DeleteKey(sHive, sEnumPath)
' The deletion failed, start deleting subkeys.
If (lRC <> 0) Then
' Subkey Enumerator
On Error Resume Next
lRC = objRegistry.EnumKey(HKEY_CURRENT_USER, sEnumPath, sNames)
For Each sKeyName In sNames
If Err.Number <> 0 Then Exit For
lRC = DeleteRegEntry(sHive, sEnumPath & "\\" & sKeyName)
Next
On Error Goto 0
' At this point we should have looped through all subkeys, trying
' to delete the registry key again.
lRC = objRegistry.DeleteKey(sHive, sEnumPath)
End If
End Function
This iterates across all of the sub keys, deleting them, before finally deleting the empty cache. I have tested this script, and it works correctly here. Hopefully you will have permission to run this on your system. Obviously please run this with all instances of VS2008 closed. |
thameera |
Posted - Mar 15 2012 : 12:09:38 AM I'm afraid I have no idea about the exact boundary. Don't have access to much of the Control Panel either, but I can install and uninstall applications. Can run vbscript files, but not sure if it'd work for editing the registry. Sorry if I'm being a nuisance. |
feline |
Posted - Mar 14 2012 : 11:58:38 PM Do you have any form of ability at all to change the current user registry settings? What things can you do? Since program settings are being changed, installed programs are being allowed to edit keys in this registry branch.
Would a vbscript be allowed to run and modify the registry? Where does the boundary lay?
So far I have not been able to find any other solution. I have tried various things, but without a registry edit I seem unable to force VS2008 to delete and rebuild its cache, and thus fix this problem. |
thameera |
Posted - Mar 14 2012 : 11:27:51 PM As I mentioned previously, I have no access to the registry, so can't run .reg files. There's no way I can solve this without accessing the registry? |
feline |
Posted - Mar 14 2012 : 5:19:58 PM There is a bug at work here, but I am not entirely sure where that bug is. To update your registry please create a new plain text file, and paste in the following 3 lines:
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache]
and call the file something like "remove_cache.reg"
Now make sure all instances of VS2008 have been closed, and then run this .reg file. This will delete the Cache key and all of its children from your registry.
If you now load VS2008 you should be able to set the background colour for the current line without any problems. |
thameera |
Posted - Mar 13 2012 : 11:19:25 PM I can't run regedit in this. I can of course change the VA settings through Visual Studio. So there's no solution other than going to the registry? Is this some kind of bug? :S |
feline |
Posted - Mar 13 2012 : 4:29:32 PM When you say you have no access to the registry, what do you mean? You cannot run regedit? VA and IDE options are saved to the registry, in the HKEY_CURRENT_USER section, so if you can change your settings then you should be able to edit this part of your registry. |
feline |
Posted - Mar 13 2012 : 3:29:08 PM Would you be able to run / import a .reg file on your machine? |
thameera |
Posted - Mar 13 2012 : 12:27:06 PM quote: Originally posted by feline
Can you try the following please. First exit VS2008 Now run regedit, and find and delete the registry key:
HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache\ This key and all of its values will be recreated by the IDE. Now restart VS2008. Are you now able to set the background colour for the current line?
This is my work PC; no access to registry. :( |
feline |
Posted - Mar 13 2012 : 12:21:14 PM Can you try the following please. First exit VS2008 Now run regedit, and find and delete the registry key:
HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\9.0\\FontAndColors\\Cache\ This key and all of its values will be recreated by the IDE. Now restart VS2008. Are you now able to set the background colour for the current line? |