I'm working with Visual Web Developer 2010 Express. I tend to bump at very strange problem.
Somehow, the autocomplete function gets disabled out of nowhere in the editor, and i have no idea how to bring it back on again. There are no errors, no warnings (a javascript file).
It seems that it turns off whenever i get close to a code fragment which has a link in it (ex. var sLink = "http://www.google.com/"). This link is sure highlighted in blue and underlined.
I don't understand what is going on. Whats wrong with it. When i reload the Visual developer, i CAN use the autocomplete functionality, but only ONCE, in the function containing the link.
After that, nothing is done, i start writing the name of variable and no box is popin up with a list. I can go to another function which has no links in it, and it works!
I am really confused. Help would be appreciated. It's really hard to work without autocomplete.
Autocomplete works based on it's ability to parse the entire javascript file (or relevant parts of it). If there is some javascript error or invalid syntax in that function, then it will fail to autocomplete there.
Try creating a shell function, and then add the lines from the problematic function by one until you find the individual line that causes the problem. Then temporarily comment out that line while you complete the function.
Related
I would like to demonstrate the problem I am having via this video on my google drive: https://drive.google.com/file/d/1RcDn1UQtbcWwILkaDaf5MgI-5PL6NS0-/view?usp=sharing
Part 1 of the video) I do not do anything with the method menu for a moment so I may attempt to read its information. Something happens that causes it to close.
Part 2 of the video) I try to see if I can use my mouse to try and select from the method menu. However, something also happens that causes the method menu to close.
Part 3 of the video) I am trying to quickly use the down arrow key to browse through the options, but some process seems to happen as my cursor turns into a loading circle, causing me to actually go down lines of code using the down arrow key.
I have never encountered this before, and I am not sure what is causing this. There were a few times earlier today when I could use the down arrow key and leave the method menu on for a bit to read more information and things seemed fine for a moment, and then there are other times like these when the method menu is disappearing on me. I'm not sure how to search this up because I'm not really sure what appropriate terminology I should use when trying to see who else has had this problem.
I am using Visual Studio Community 2019, version 16.9.4 with the .NET Framework version of 4.8.04084
I'm using Visual Studio 2015 (14.0.x - update 3) and no matter what I try, I can't get All Languages to do Smart indenting. I go into Tools -> Options -> Text Editor -> All Languages -> Tabs and set it like so:
I've got a handler file open in VS (.ashx file) with inline code:
Notice that when I position my cursor right after the opening curly brace and hit Enter, the cursor goes to the next line, but indents too far over. This does not happen when a c# file is being edited. When I go back into Options to see what is going on, I am surprised to find Smart formatting cleared:
It doesn't matter how many times I re-select Smart, it doesn't honor it, and it clears it again. I don't believe ASHX file types have their own registered Text Editor type in VS, but maybe it does, listed under something unexpected, and that is overwriting it. I can't see any types that even resemble 'handler', or etc.
I even tried hand-editing the .vssettings file to enable Smart, but it still doesn't work, and Smart is cleared again when I go into Options.
I have read this post and tried to follow it, but my case is a little different.
How can I get the same indent behavior on my ASHX file as I get with .cs files, so that when hitting Enter after a line, it goes to the correct place on the next line, as expected?
Smart indenting is not applicable for all languages and hence the check is disappeared for All Languages, but the option is checked for C# ,html etc. for any applicable language.
Please refer to this link: https://learn.microsoft.com/en-us/visualstudio/ide/reference/options-text-editor-all-languages-tabs?view=vs-2015
I know I might sound like a woman complaining about sounds her car is making. But Visual Studio keeps turning off autocomplete.
Sometimes it is for a single file. Sometimes for all files in the current project. Sometimes for every project that I have open.
It just happens randomly, I might go a whole week and it doesn't happen. Or sometimes, like this morning, it turns off 3 times in one hour.
Google seems to offer nothing on this. Any ideas what might be the issue?
I have also ran into this. I usually have to go to Tools => Options => Text Editor => C# (or whatever language you are using). On that page there is an option for statement completion. Be sure Auto List Members and Parameter information are checked. After I do that it seems to work ok for months. Sometimes, they are checked and I uncheck, then recheck them to solve it.
Background
I am working with VB6 legacy code and I am using an external editor because of the features that it has. Unfortunately, those changes aren't refreshed in the IDE because VB6 doesn't monitor loaded code for changes.
I have done some extensive searching on the subject including looking for alternative editors, a fairly exhaustive internet search including following all of the links on this StackExchange link and haven't found a way to refresh the code window to reflect the external file changes.
My company doesn't have access to the latest edition of Visual Studio and will not be purchasing it anytime in the near future. Until then, there is code to fix.
Question
Aside from restarting the program are there any methods that can be used to refresh the code displayed in the VB6 editing window?
Check out vbAdvance add on. It will prompt you to reload source file in case of external modification.
I think a found one possible solution.
The MZ-Tools set has an function called Reload file from Disk. It also allowed me to create a shortcut for this function through the MZ-Tools options menu, so I assigned it to the shortcut keys of my choosing.
It's a solution, but I'm still looking for anything that might be better.
VB.NET 2010 project, VS 2010, VSS (think it is 2008).
looking at other posts for this error, seems it is because of a change in a loop, enumeration, etc... In my case, all I do is open the project, make any change, like re-sizing the form, save and close and when I reopen that form I get this error. then I can undo checkout of the code and it opens fine. Not even making a change to any code, just re-size the form. ANY change I make, gets this error. The code is in production already and works fine, and I think it only happens on my pc.
Help! Thank you in advance...
adding - actually it looks like it only happens in changes in the form, and the error is only on the form, not the code. But it happens on any form.
A coworker figured it out for me. It was an issue with DevExpress windows controls and Visual Studio.
Solution is here:
How to enable visual inheritance for Developer Express controls.