Disable visual markdown editor on RStudio - rstudio

I'm working on a book project with Quarto using RStudio 2022.02.2+485. Whenever I open a mardown .qmd file, RStudio automatically opens the file using the Visual markdown editor, what takes time to load. Even if I move to the Source pane, RStudio moves back again to Visual editor after and I make an edit to the file or whenever I open a new file.
Is there a way to disable the visual markdown editor on RStudio?
Rstudio version
RStudio 2022.02.2+485 "Prairie Trillium" Release
(8acbd38b0d4ca3c86c570cf4112a8180c48cc6fb, 2022-04-19) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

You can configure the RStudio IDE to use or not Visual Editor by default. See Global Options
https://quarto.org/docs/visual-editor/options.html#global-options
On a per file basis, you can also set this in YAML
editor:
mode: source
instead of
editor:
mode: visual
So that the file always open in source mode.

Related

How do I open my Windows terminal settings in Visual Studio Code

I have Visual Studio and Windows Terminal installed in my PC. When I click the tab drop down and select Settings, the settings.json (Alt+click Settings for defaults.json) opens in Notepad. How do I configure to open the files in Visual Studio Code?
When you edit Windows Terminal settings (Ctrl+Alt+comma, by default) it loads the JSON file using whatever editor is configured to edit JSON files, system-wide.
One way to change that is to open File Explorer, navigate to (or create) a JSON file, then right click on it and look for "Open with..." then "Choose another app".
Pick VS Code and select "Always use this app to open .json files".

How can I fix the VS2008 tool window buttons on Windows 10?

I have to maintain a legacy codebase which for a variety of reasons, can only be worked on in Visual Studio 2008.
I noticed the Tool Windows' buttons for Menu, Pin, and Close have their icons replaced with the letters "H D A" or "H B A".
Whereas on Windows Server 2008 R2 (Windows 8.1) it looks like this:
My guess is that the font it uses for the buttons is either missing or being overridden. Does anyone know what font it is (so I can see if it's missing) or some other fix?
After running Windows 10 for a few weeks I noticed the Visual Studio 2008 tool window caption buttons have been restored to their correct appearance without me having to do anything specifically, weird. No bug then, I guess :)

Can I use one of standard Outlook's previewers to preview other file types?

Outlook's "Windows TXT previewer" only previews attachments with extension .txt.
Is there a way to tell Outlook (2010) to use "Windows TXT previewer" on other type attachments?
For example, I would like to use it to preview .csv files and some other extensions that are just text.
Here is a registry change:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Excel.CSV\ShellEx]
[HKEY_CLASSES_ROOT\Excel.CSV\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
#="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"
Here {1531d583-8375-4d3f-b5fb-d23bbd169f22} is GUID for text previewer (listed among HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers) and {8895b1c6-b41f-4c1c-a562-0d564250836f} is special ID that identifies previewer for this filetype. It may be different for other verisons of windows, http://msdn.microsoft.com/en-us/library/windows/desktop/cc144143(v=vs.85).aspx may or may not have more details
In order to achieve your goal, you have to change some entries in the Registry. Preview HAndlers have GUIDs that are stored in the Registry. For each filetype, if there is one available, there is a preview handler.
For .csv files you need the Preview Handler from Microsoft Excel since a .csv file is Excel.
Another method: install Preview Handlers.
Download PreviewHandlers2007_01 and run it.
A folder called PreviewHandlers will be created
Don't worry because of that file name. That file containing "2007" worked very good for Microsoft Office Professional Plus 2010.
Go to PreviewHandlers\Installer and run Install
Probably it won't work because of Microsoft Visual J# is missing.
Download Microsoft Visual J# Version 2.0 Redistributable Package and install it (probably it appears as vjredist in your download folder)
Run the Install file again.
Restart Outlook
You will be able to see the content of that CSV attachment as a table.
If your goal is just to preview files like .csv, .log etc. within Outlook message panel, it is directly related with default program in Windows (operating system).
So, in Windows Explorer add default program:
- open the folder containing .csv file
- right click on the file and choios in the menu "Open With..."
- Choose Default Program
- Select desired programe (Notepad++, Excel, etc.)
- Restart Outlook

VB6 crashing if Crystal Report is added

I have installed VB6 and Crystal Report 8.5. If I go to project and add Crystal Report 8.5, VB6 crashes. Here are the screenshots.
Go to the Root Directory where VB6 id installed, select properties, and in compatibility tab select "Run this program in compatibility mode (Windows XP)" and "Run this program as an administrator"
I had been facing the same issue since long, and due to this i was not able to upgrade my laptop to Win7 or 8, finally i resolved the issue, just go to the Root Directory where VB6 id installed, select properties, and in compatibility tab select "Run this program in compatibility mode (Windows XP)" and "Run this program as an administrator" Best of Luck
Follow these steps:
Create a 0-byte file in the C:\Windows directory called msjava.dll.
Change the compatibility settings for Visual Basic (to get it to run a little more smoothly under Windows 7) by browsing to C:\Program Files\Microsoft Visual Studio\VB98, right-clicking the VB6.exe file, and selecting properties.
On the Compatibility tab, check the following:
[Run V6.0 In Window 7]
Run this program in compatibility mode for Windows XP (Service Pack 3)
Disable Visual Themes
Disable Desktop Composition
Disable display scaling on high DPI settings

How to fix setting source window font of Visual Studio 6 on Windows 7 64-bit?

In Visual Studio 6 installed on Windows 7 (Home Premium 64-bit SP1), I cannot see or change the font for source windows via Tools > Options...
Tools > Options..., Format tab, Category: Source Windows, yields Font: (blank) with empty list, Size (blank) with empty list.
It appeared that the relevant registry hive was missing:
[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format]
Importing this registry hive from an existing installation does change the font as desired, but still does not show it nor let me change these settings via Tools > Options... .
Is there a proper solution so that the Format options work as they should?
I had a look at an installation on a WinXP machine and got it working by adding the following keys to the registry:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format]
[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Output Window]
"FontFace"="Consolas"
"FontSize"=dword:0000000c
[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format\Source Window]
"FontFace"="Consolas"
"FontSize"=dword:0000000c
The above lines set the Source and Output window's font to Consolas with a size of 12 points.
It's an export by regedit so you can put it into a .reg file and import by opening that file in Explorer.
I seem to recall that when you install VS6 on Win7 the installer reports "There are known issues with this program." and asks if you want to go ahead regardless.
Maybe this is one of the issues.
http://msdn.microsoft.com/en-us/library/aa265715%28v=vs.60%29.aspx
VS6 Windows 7 works best if launched in virtual pc XP mode. It's virtual machine, very convinient.

Resources