What's the shortcut to build a project using a MAC + VM? - visual-studio-mac

I'm using Mac+ a VM and I would like a shortcut equivalent to f5 on a PC so that I'm able to speed up my workflow.. Thanks!
f5 does nothing (can I map it somehow?)
Command + f5 doesn't work either.

If you want to use the same keyboard shortcuts as for Visual Studio on Windows, open Preferences - Environment - Key Bindings and select 'Visual Studio (Windows)'.
Note that F5 Debugs the project.
You can also configure keyboard shortcuts on this page.

Related

How to Reset Window Layout in Visual Studio for Mac

Is it possible to reset window layout in Visual Studio for Mac? I am able to do this for Visual Studios on Windows, but not on Mac version.
After piecing together various posts I found only a non-UI way to reset the layout. Starting with this doc: http://www.monodevelop.com/developers/articles/user-profiles/ but instead of using the path "MonoDevelop" use "VisualStudio". So in the case of a Mac the folder to visit is at "~/Library/Preferences/VisualStudio".
Once there I found the "7.0" subfolder had a file named "EditingLayout.xml"... With VS for Mac not running, I deleted that file and started it again. This restored all pads to their default state from what I can tell. In my case the "Application Output" window was still not available as a Pad until I actually did a Debug on a project, and then it was visible again in the View | Pads list (and no longer lost in the UI somewhere).
You can press the view tab to change the different layouts or create one of your own.
Additional informations can be found here:
https://learn.microsoft.com/en-us/visualstudio/mac/customizing-the-ide?view=vsmac-2019
I met this problem also, Visual Studio for Mac can't reset Window Layout in UI. But you can easily customize the Window Layout. Just select "View->Pads/Debug Pads" to decide what window you want to show on the dashboard.
enter image description here
Just to have a more up-to-date answer: when you quit Visual Studio Mac 2019, any changes made to the active layout will be reset to how the layout was saved.
From the Visual Studio Website:"There is always one active layout and any change you make in a layout, such as adding or repositioning a pad, will only change the active layout. Once you close Visual Studio for Mac, the changes you have made will not be saved." Visual Studio Website - Customising The IDE
I've tested it out for Visual Studio Community 2019 for Mac Version 8.7.8 (build 4), and now it really does just reset when you quit the app, unless you have specifically saved any changes as a new layout.

Delphi 10 Seattle do NOT open last used project on start

I'm new to Delphi, coming from Visual Studio it's a simple question (I guess): how do I prevent Delphi 10 Seattle to open last use project(group) when I start the IDE?
I've found some information about the .dsk file and what it does:
The .dsk file records your current settings for:
Desktop layout
Breakpoints
Watch items
Files currently open in the IDE
When you reopen the project later, the .dsk file is read, and your
desktop layout, your breakpoints, and your watches are all restored.
Also, all files that were opened when the project was closed are
opened again, regardless of whether they are used by the project.
I'm fine with that when I open a project. But please do not open it when I start the IDE. Mostly I want to start or open another project than the last one I was working on.
I've searched the options and the internet, but couldn't find a solution. Anyone?
Disable "Project desktop" in the IDE Autosave options (Tools\Options\Envinroment options).
But please do not open it when I start the IDE. Mostly I want to start or open another project than the last one
Granted, I do no have Seattle at hands, I settled in XE2.
But try changing the shortcut.
-np: No welcome page. Does not display the welcome page after starting the IDE. np also stands for No Project. Independently of Environment Options Project desktop the last opened project will not be opened
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/IDE_Command_Line_Switches_and_Options
saving the layout and position of the tool windows like Refactorings,
That is what the "Layout" combo-box on the "Desktop" toolbar does. Unless you want different layouts in different projects. R-click over your IDE's tool buttons or go View|Toolbars menu to turn "Desktop" bar on. Alternatively use View|Desktops menu.

Visual Studio .NET 2003 on Windows 7 hangs on search

So I have Visual Studio 2003 running on Windows 7 - yeah I am aware it isn't officially supported - and no, unfortunately I can't change that situation :-(
For the most part it works OK but I have a specific problem, that I can't figure out. The application hangs if you do a project wide search (Ctrl - Shift - F) for a string.
I have a reasonably powerful machine and all the other heavy tasks like compiling and debugging all work fine. It also works if I restrict the search to the current document (Ctrl - F). I am running it as administrator and VS.NET 2003 SP1 has been applied.
The size of the project does not seem to be a problem since a colleague is also experiencing this issue for a single project solution containing 5 pages.
I am currently using Windows Search as a work-around and I was wondering if there is something I missed that I should try.
Try disabling the Aero theme in compatibility. Yeah seriously...
You can do this by right clicking the shortcut to launch VS.NET 2003 and selecting properties, choosing the “Compatibility” sub-tab and then checking “Disable Desktop Compositing” as well as “Disable Visual Themes”
I use Windows 8.1, and the path
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
is invisible and could not be created manually inside regedit.exe.
So I wrote a registry file "abc.reg" with text:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Microsoft Visual Studio .NET 2003\\Common7\\IDE\\devenv.exe"="^ RUNASADMIN DISABLEDWM DISABLETHEMES"
Execute it by double click icon of "abc.reg" (may be Run As "Administrator").
It works.
(The post is for your convenience in this certain case)
I am running Windows 10 Enterprise 1909 and found global search also causes VS2003 to freeze and stop responding.
The advised registry edit did not work for me - VS2003 refuses to start up when run as admin:
A referral was returned from the server.
This is the same error I get if allowing the compatibility trouble-shooter to apply Windows XP (Service Pack 3).
I can get global search working if I remove RUNASADMIN and DISABLEDWM from the registry value (I.E. leave only DISABLETHEMES in place).
Create a registry key as follows:
Location: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
New: String Value
Name: C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe
Value: ^ DISABLETHEMES
You will end up with an even uglier UI (quite an achievement in itself!) but at least global search will now work.

How can I change Delphi's 'Run' and 'Add Breakpoint' shortcut keys?

How can I change the IDE keyboard shortcuts in Delphi?
I want to change "Run" from F9 to F5
and "Add Breakpoint" from F5 to F9
I'm currently programming Delphi at home and C# at work and these 2 shortcut keys are confusing because they are the opposites of each other!
#Kobus, you can map the keys to simulate the behavior of visual Studio IDE using the "key mappings" tab, located in tools->Editor options menu.
see theses images (Delphi 7)
Delphi 2010
Another option is install Gexperts, and use the expert IDE menu shortcuts, This expert enables you to configure any of the IDE menu shortcuts.
(source: gexperts.org)
I personally use DPack which provides a Delphi keyboard mapping for Visual Studio plus a whole range of additional tools. It's also free :-)
Simon
I've found a better solution for me because the Visual Studio emulation is not the same as my VS and can't be customised
and as Altar mentioned GExperts IDE menu shortcuts is not working with Delphi XE.
Using AutoHotkey I remap the keys using this script:
#IfWinActive, ahk_class TAppBuilder
;Set breakpoint
F5::F9
;Run
F9::F5
;Step Over
F10::F8
;Trace Into
F11::F7
;Delete line
^l::^y
;Switch between form and code
F7::F12
;Find Declaration
F12::Send !{Up}
;Navigate Back
^-::Send !{Left}
;Navigate Forward
^=::Send !{Right}
;Duplicate Line
+Enter::^!+d
;Incremental Search
^i::^e

Delphi 2010 How to Set The Initial Folder of the IDE Open Project Dialog

Does anyone know how to set the initial folder of the open project or open file dialog in the Delphi 2010 IDE? For the first time I installed D2010 on a USB hard drive and the open dialog always reverts to the windows drive -D while Delphi is on Drive R.
In Tools|Options|Environment Options, you can set the Default Project directory.
Just to clarify for those who (like me) are looking at their "Environment variables" page in the options.. It's not the environment variable BDSPROJECTSDIR! Neither is it any of the other environment variables!
Have a look at the root level item in the options screen, "Environment options", at the bottom of that page is the "Default project" setting. (easy to miss I guess)
Just checked.. In XE6 and 10.1 the option is still in the same place.
(Thanks to TheSteven and Bruce McGee for providing the answer. Unfortunately, the eureka moment is not very visible in the comments to the last post)

Resources