I'm trying to set up a simple blog on via Visual Studio and Jekyll but Jekyll can't seem to parse markdown for my posts correctly. Here's the result for my file as is.
Notice that per Visual Studio, this currently is saved with BOM but still builds.
I'm aware that files need to have NO BOM (Byte Order Marker) so I've tried saving it without it but still can't get any results. Anyone have any ideas?
EDIT: Here's backtrace output per comments:
EDIT2: I've tried all the possible line endings available and still can't seem to get anything going. Per #Waylan 's comments I looked into issue #3304 but it seems it isn't fully resolved. Check out this issue if you'd like to add any comments
Seems this was occurring because I was adding via Visual Studio.
You must add the files as a regular text file in Windows Explorer - then you'll be able to edit them in Visual Studio as you like.
Hopefully we'll get support for this in later version of Jekyll or Visual Studio will change whatever it is that's causing the issue. I've made note of the issue with Jekyll already here though if anyone would like to add on to it
Related
This problem is very weird to describe...
Sometimes null characters are added to the end of the open document.
Other times lines are deleted from the end of the document.
I feel like these must be related in a way.
I cannot reliably reproduce the error. But it seems to be connected to when I save the document since it happens much more frequently when autosave is enabled.
Installed extensions are:
Python,
Jupyter,
GithubCopilot,
R
The problem appears as soon as the jupyter extension is enabled.
The funny thing is I have the exact same setup on my desktop with absolutely no problems.
I tried removing visual studio code and the files created in the following folders:
%APPDATA%\Code and %USERPROFILE%.vscode - along with the other extension files like .jupyter.
Reinstalled everything.
Same problem.
You may install the Prettier extension. Prettier would suggest you add a blank line at the end of files so it may prevent cutting the final line in your saved files. I usually use this method.
You can find it on VS Code Marketplace or the documentation.
I've started redacting markdown files inside VSCode (currently VS Codium, but I face the same issue in VSCode as well).
What bothers me is that I see an odd preview with Chinese hieroglyphs everywhere:
I have no markdown extension installed (as seen on the left side of the screenshot).
I tried to search for it, found extension's repo and looked for any similarly named files at %USERPROFILE%\.vscode-oss\extensions, but to no avail.
Is there a way to find any markdown-related settings or somehow force the app to use a standard markdown editor or another extension?
Thanks in advance.
Thanks to the great comment by rioV8 decided to just go through it manually.
Turns out, that the "Office Viewer" extension is causing it.
While I wanted to find a way to change it without deleting the extension, technically the question is answered.
From the instructions for Office Viewer
If you want to use the original vscode editor, insert this in your
settings.json.
{
"workbench.editorAssociations": {
"*.md": "default"
} }
There are certain files that I'd like to always appear below other files in the search results. E.g. generated files and tests. I don't want to exclude them from the search results. Usually, I'd be searching for files that aren't generated or tests. There's a setting called "Search: Sort Order", but none of them work because the files I want to de-rank are interspersed with other files.
Is there a setting or extension that could work?
I'm not sure this is possible with the current LTS version of Visual Studio Code.
However, if you want the feature to be available, and many people also want it, you can make a new GitHub Issue with the tag feature-request. Microsoft might review it (if there are many people who want it too), and add the feature.
Edit: This link at Visual Studio Code might help. Click here for the documentation.
Hi my visual studio code does this weird single line paste whenever I copy a code from a pdf or any other sources.
this picture below is what I copied from
this is what happens when I paste my code
Not really sure what made it this way but I have tried reinstalling, deleting the cache, all the files related to visual studio code but it doesn't work.
The reason why I am asking this because it used to work and my friends that use vscode doesn't have this problem.
Your help is very much appreciated.
When I first started using Visual Studio Code for my cobol, it was working fine. But lately when I try to compile my code after saving it in vsc it gives errors about there being weird characters.
If I do the same changes in Notepad++ it works fine. I've been going through the settings in vsc but I cannot find anything wrong in there. But then again I don't know that much about it. I'm also using the extension cobol syntax support from bitlang.
Does anybody know how this is possible? Is there some setting that messes this up? I cannot really show any screens or anything. since this is all work related and I'm not allowed to share.
My guess is, that this is related to the code page used to save the project.
Notepad++ by default uses UTF-8. you may need to change the code page on Visual Studio Code to UTF-8.
https://code.visualstudio.com/docs/getstarted/settings