FOX pro undo - redo - visual-foxpro

Is there an undo/redo function on Visual Fox pro?
I have been using the previous version whenever I screw up, but I wondering if there was a way to do it from the command window
or is there a program for it?

Once you save changes there is no way to 'UnDo' the changes in FoxPro.
Use source control. Then you can check out the current version, make changes, test it, and if it doesn't work, get the latest code again.

Related

Visual Studio 2022 - How to turn off new AI red highlighting with arrow and tab replace feature - NOT intellisense entirely?

I've wasted almost an hour trying to find the setting to turn off the new AI autocomplete feature that was released in the last two months, between October 2022 and now.
I do NOT want to turn off intellisense entirely, only the new feature that highlights chunks in red and shows an arrow to replace the text with an auto suggestion.
This feature has not worked correctly since it was implemented for me. If you type fast, it's constantly trying to overwrite what you just typed, and it's constantly prompting for changes - even after hitting the escape key and rejecting them repeatedly.
Can someone please tell me the name of this specific feature, and how to disable it in VS2022?
Thank you.
I've spent an hour trying to find the release notes on this specific feature and have only found how to entirely disable intellisense, which is not what I want.
I still want the drop-down intellisense prompts as I'm typing, I do not want this red highlighting with the tab to replace arrow and suggestions that keeps popping up repeatedly after I've already written my code.
If you are attempting to write SQL strings in Visual Studio 17.4 and running into formatting issues with the red highlighting on intellicode, I recommend rolling back to 17.3.7 until a new update is available.
This dev community report has been acknowledged by Microsoft and hopefully a fix will be available soon as it's stamped pending release 1/17/23.
Still no word if this is baked directly into intellicode itself or is a separate feature.

How can I save code changes in debugging mode in vb6

When an app stops in debugging mode and I make changes to the code
Is there a way to save the code with the changes, without stop the app?
Although the VB6 IDE does not provide this natively, an add-in for the IDE called MZTools has been around for ages which adds this feature.
Personally I've used MZTools 3.0 for many years, and this works really well.
This is what its help system says:
Shortcut To Save File At Debug-Time
The Shortcut To Save File At Debug-Time feature allows you to define a keyboard shortcut (Options
window, Shortcuts tab) to save the selected file at debug-time. The
Visual Basic IDE does not allow to save files at debug-time, but often
it is useful to save the modifications that you have made to the
source code at debug-time.
Remarks:
This feature is not available in the VBA version of MZ-Tools. This
feature only works at debug-time. Since Visual Basic disables buttons
or menus of add-ins at debug-time, the only way to save a file at
those times is through a keyboard shortcut. The file must be
previously saved at design-time, that is, MZ-Tools does not prompt for
a name to save the file (it shows an error message instead).
This is the options window for how I have it configured locally:
Note that originally MZTools was free in version 3 and later they switched to a paid version; if I hadn't gotten v3 originally however it would be well worth paying for, not only for this feature.
The short answer is you can't.
If you make the project before the crash, maybe this piece of code can be found in a ".tmp" file. But searching in .tmps is often a waste of time.
I particularly always force myself to stop the debug and save my progress.
And I always use this setting which forces me to remember to save:

Is it possible to "hot reload" a ASP.NET Core application without pressing pause and continue?

The hot reload of code changes in DotNet Core / Visual Studio works perfect.
The only disadvantage is that the hot reload only seems to work when unpausing.
The problem is my project is not always paused when making changes.
Is there another way so I can bind a HotKey to it?
I am aware this is a detail, but pausing/unpausing takes unnecessary time and gets me a tiny bit out of the flow (pausing, VS interface shifting, waiting a few seconds, unpausing).
In the latest version (16.11.7) this is now possible within default Visual Studio.

How to easily copy old version line difference to new version?

I've just moved to MSVS2013 from MSVS2010. On 2010, I was able to use my own diff util. It allowed me to skip from one change to the next and if the entire change is not wanted, I could back it out with a single keystroke.
Under 2013, I can't seem to select my own diff util, nor can I just backout a change group with a single keystroke.
Is there a way of changing the diff util? Or is there a way of backing out a change group with a single keystroke?
I just ran an automated code modifier and I have a lot of files to go through. I don't want to have stop my searching using F8/Shift-F8 just to pick up my mouse to copy and paste each change group that I don't want. :(
Not sure about the rest of your question, but you can change the diff tool in:
Tools->Options->Source Control->Visual Studio Team Foundation Server->Configure User Tools.
Heres a post regarding setting up Beyond Compare with some screenshots:
How to configure Visual Studio to use Beyond Compare

Why does my VB6 IDE loses its buttons and menu items?

I still have to use the VB6 IDE.
Unfortunately every time I start the IDE one of the buttons of the toolbar disappears. Almost always it's the Run button which goes first. Sometimes also items from the menu bar or the context menus are missing.
I have to reset the toolbars almost every time I start the IDE (Which is quite often during a typical work day). Recently I bought an IDE plugin which modifies the menu bar and requires a restart after every reset of the menu bar. (Otherwise it would crash)
I could live with just the resetting, but the restart is really annoying.
Is there something I can do?
To solve this problem:
Unload all add-ins.
Right-click on a toolbar and select the Customize... menu.
For each toolbar click the Reset... button (6 times in total).
Reload the add-ins.
For me action 3 was enough.
cf. MZTools faq (thanks to Andrea Bonafini), but these steps are originally from MSDN
It sounds like you recently bought a bad add-in. Can you get your money back? Every time I've had problems with disappearing controls in the IDE it has been due to a bad add-in. You can find out which one it is by disabling them, one by one, each time using the IDE for a while, then re-enable it and disable the next one, until the problem stops.
I still use one problematic add-in. It exhibits behavior similar to yours in that it makes the run button disappear. I avoid the problem by only loading the add-in when I need it, use it (it formats code), then I immediately unload it. If you don't use the functionality of the add-in that often, this could be an acceptable workaround.
Yea, i have this same problem with one of the add-in. But if you reset it. Shut the IDE down and open it back up again without doing anything, the IDE shouuld be able to retain the previous clean setup.
It's just guest, but:
Each graphical element on IDE (like button) is kind of resource (i.e. GDI handle).
Maybe your VB app doesn't manage these resources good enough and after sometime VB IDE cannot redraw elements like buttons (run is used often).
Also, maybe some IDE add-in is in conflict with some other add-in/application and breaks something -- I have this problem with Clip-X and MZ-Tools.
I had a similar problem when I was setting up the IDE to use for the first time, though it may not be helpful if you've been using the same IDE for a while. When I first started using the IDE, I would modify the toolbars and then close the IDE. When prompted if I wanted to save the open file I always said No, since the file was just a dummy file I was using to open the IDE with. Turns out the IDE was saving the toolbar preferences with that file, so they never got saved.
Try opening a file, customizing the UI, saving the file, then closing without modifying the code. This was the solution for me.
I've tracked down the problem and as suggested it was an add-in.
The problem went away as soon as I disabled the Visual Basic 6 Resource Editor.
How to restore your VB6 IDE without reinstalling:
Run Regedit
Find the entry for Visual Basic 6.0
Export your settings in case things
go wrong
Delete the 'UI' setting
Run VB and you will have your popup
menus back
The 'Find' button disappeared from my VB6 toolbar forcing me to select the Edit menu to use Find. I had two add-ins enabled: vbCodePrint and ResourceEditor; so I did away with both of them, turned VB6 off and back on, then put both add-ins back in and my button returned.
If you're still using the VB6 IDE, and I do amongst others, then this problem is not likely to have gone away. I use VB6 in Windows 10, and the problem is still there. But it doesn't affect me anymore.
I have had this problem a few years into using VB5 and VB6. Today, if I start VB6 directly, it may work fine the first time, but buttons will go missing the second time -- ALWAYS.
My solution, which I developed from day one:
Do whatever needs to be done to restore all your buttons. Save the Visual Basic 6.0 registry settings to a file, as suggested previously, and only keep the UI entry. Sometimes, you have to exit VB6 for it to post changes to the registry. So if this doesn't work the first time, try exiting before saving the settings.
I use my own program to launch VB6, which automatically copies my VB6 registry backup back into the registry -- by calling "RegEdit.exe /S D:\VB\IDE_Fix.reg" -- before I launch the IDE . This works every single time, and requires no action on my part.
If you read this, that means you are a programmer. You can make this work by yourself.
Mike
Reinstall,clean registry and update with SPacks etc....

Resources