Archive for the ‘.NET’ Category
Posted by jpluimers on 2018/07/18
I was looking for a HTML pretty printer (…) but in Visual Studio code, that is called code formatting, which supports many languages out of the box (including HTML) without requiring extensions like Atom.io (see below).
The shortcuts are at [WayBack] How do you format code in Visual Studio Code (VSCode) – Stack Overflow.
For Mac OS X/OS X/MacOS they are (the second one only appears when you have a code selection):

- document:
Shift–Option–F
- selection:
Command–K Command–F
Read the rest of this entry »
Posted in Development, Software Development, Visual Studio and tools, vscode Visual Studio Code | Leave a Comment »
Posted by jpluimers on 2018/07/04
Since I forget where they hid the [WayBack] Visual Studio – Add File As Link feature, two images from the linked post:
- The icon in the link is different from the normal file:

- Adding as a link is not a separate menu item, but a modification of the file open dialog overlaying the default
Add button with two more options: Add; Add as Link (note Show Previous Versions is a feature of non-Home version of Windows Vista and up).
Do not double click the file name, as that will add (AND COPY TO THE CURRENT PROJECT DIRECTORY !!!1!!!) that file to your current project.

A step by step instruction is at [WayBack] c# – Add File as a Link on Visual Studio – Debug vs Publish – Stack Overflow.
–jeroen
Posted in .NET, Development, Software Development, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2018/06/29
I forgot to schedule the post below. It is still relevant if you create a machine with lots of Delphi versions on it.
Read the rest of this entry »
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, Database Development, Delphi, Delphi 2007, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Firebird, InterBase, Power User, Software Development, Windows, Windows 8 | 2 Comments »
Posted by jpluimers on 2018/06/21
Very often, I see people ask for how to embed multi-line strings in a Delphi source file.
The short answer is: you can’t.
The long answer is: you can’t and if you want you have to hack your way around.
The answer should be: just like any of these languages that do support multiline strings:
- Python
- JavasScript
- Ruby
- C#
Many languages support this through a feature called HEREDOC.
Now in Delphi and other languages like Java are building ugly workarounds like for instance this one: [WayBack] RAD Studio Tip: Using resource scripts to organize project dependencies. – Chapman World.
–jeroen
Posted in .NET, C#, Delphi, Development, JavaScript/ECMAScript, Python, Ruby, Scripting, Software Development | 17 Comments »
Posted by jpluimers on 2018/05/31
Very interesting read: “Garbage Collection Design” by Maoni Stephens at [WayBack] coreclr/garbage-collection.md at master · dotnet/coreclr.
It’s part of this series of documents:
The Book of the Runtime
Welcome to the Book of the Runtime (BOTR) for the .NET Runtime. This contains a collection of articles about the non-trivial internals of the .NET Runtime. Its intended audience are people actually modifying the code or simply wishing to have a deep understanding of the runtime. Below is a table of contents.
at [WayBack] coreclr/Documentation/botr at master · dotnet/coreclr
I got there via these links:
–jeroen
Posted in .NET, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2018/05/30
The thread at [WayBack]: Allow for floating windows · Issue #10121 · Microsoft/vscode · GitHub made me discover a few things, which I have commented there.
Reminder to self: find the Windows keyboard shortcuts as well.
Thanks @steinhh for the Cmd–K O keyboard combination. I was not aware of that yet and I am going to use this next week on a multi-monitor system to see how well that works.
Your tip made me found the PDFs below and made me make the lists/screenshots below as well.
Terrific! Thank you, thank you!
The bindings (on Mac) I found with their screenshots:
Cmd–Shift–P: show all commands

Cmd–K O: open current file in new Window
Cmd–Shift–N: open a new window

Cmd–K Cmd–R: open keyboard shortcuts reference PDF for current OS in the default web-browser
Cmd–K Cmd–S: open keyboard shortcuts editor

The keyboard shortcuts editor has a search which can find bindings on the keybinding name itself or the command name:
–jeroen
Posted in Development, Software Development, Visual Studio and tools, vscode Visual Studio Code | Leave a Comment »
Posted by jpluimers on 2018/05/10
It’s a great too, so I need to invest more time into using MemoScope.Net – Dump and analyze .Net applications memory ( a gui for WinDbg and ClrMd )
Way too manny features to describe here, so get that at the GitHub repository below.
- Heap statistics
- Query instances
- Instance content and references
- Compare dumps
- Threads and stacks
- Deadlocks
- Delegates
- Dump process memory
Source: [Archive.is/WayBack] fremag/MemoScope.Net: Dump and analyze .Net applications memory ( a gui for WinDbg and ClrMd )
Via Matthijs ter Woord.
–jeroen
Read the rest of this entry »
Posted in .NET, Development, Software Development | Leave a Comment »