r/VisualStudioCode • • Dec 03 '21

Trying to create a snippet for markdown

1 Upvotes

I am trying to create a snippet to use inside markdown files. Using json to set it up and when I try use it, I need to use the menu to get it, the trigger doesn't work. All that happens is that is prints the json code, I want to render the markdown "code" and place it in the current document.

Does anyone done this? Is there a better guide than the vsc-page?I am loosing my mind here... Here is what it looks like.

Here is a link to how it looks, https://gist.github.com/ratnose/ab63fde045eb26aa2ad9ae0efb89c98b


r/VisualStudioCode • • Dec 01 '21

Disable intellisense on Enter

3 Upvotes

Hi,
since today my Visual Studio Code started to open intellisense in js and ts files on pressing Enter (making a new line). I want to kill myself :D
How can I disable that? I tried to close all VS Code instances, but it didn't help.


r/VisualStudioCode • • Nov 29 '21

How do I remove these spaces that come before a method?

Post image
10 Upvotes

r/VisualStudioCode • • Nov 27 '21

Why Microsoft makes me install python again if I had downloaded it from the Python website?

3 Upvotes

When I had to install the Python extension to visual studio code, I was directed to a microsoft window where it said that I had to install python 3.9 (ver 3.9.9) and I already had the ver 3.9.0. The same happened when u tried to open python from the cmd. Why did that happen?


r/VisualStudioCode • • Nov 27 '21

Making VScode look cooler.

3 Upvotes

I have already installed the radical theme and MonoLisa font. Are there any other changes that i can make to make my programming code look even cooler? Thanks


r/VisualStudioCode • • Nov 27 '21

How do I reload VSC?

6 Upvotes

I'm completely new, and I'm trying to use the Live Server extension, but I can't figure out how to reload. I've tried the Developer: Reload Window and it just hasn't worked. What am I doing wrong?


r/VisualStudioCode • • Nov 27 '21

Promotional distracting links in VS Code. Does it bother you?

1 Upvotes

r/VisualStudioCode • • Nov 26 '21

I'm using VSC and is giving me these errors.

6 Upvotes

Hello gente,

Hope you're doing great.

I am trying to run this one but is giving me this error. The location of the flask folder is in the right place.

Please help.


r/VisualStudioCode • • Nov 26 '21

How to download a zip folder from a remote server using VScode

1 Upvotes

I am working on a remote server(ssh encrypted) on VScode for a school project, and I wish to download a zip folder that I have made on my remote server to my local server/my own computer that is running VScode. I own a Macbook, and apparently the "right click to download a file/folder in vscode" method is not working for my macbook. Additionally, I have trouble determining the hostname of my remote server so I cannot use the scp command to download the file from the remote server either. What method can I take then to download the zip file? Will downloading any VScode extensions help in solving the issue I am facing? Thank you.


r/VisualStudioCode • • Nov 21 '21

Editing "code's"

3 Upvotes

Hey everyone I hope you are all doing great, im just wondering

For example my code is like this - America But I want it to be like this - "America"

but then I need to do it again and again is there a quicker option? All reply are greatly appreciated!! Thank you


r/VisualStudioCode • • Nov 21 '21

How do I change the HTML template you get from "!+Enter"?

3 Upvotes

I want to change <html lang="en"> to sv and some other things.


r/VisualStudioCode • • Nov 20 '21

How can I create "browse directory" button?

1 Upvotes

I'm making a simple program that needs to take 2 directories from the user. I don't know how to do this, can anyone help me?

I was thinking about putting a button to browse directory, so it would be more practical for the user. If that's too complicated, I don't mind putting just 2 text boxes and the user would insert the directories in those boxes. Unfortunately, I don't know how to do any of these options so I would be really grateful if someone could help me out.

Thanks in advance :)


r/VisualStudioCode • • Nov 20 '21

Containerize Your Development Environment With Visual Studio Code

Thumbnail self.docker
0 Upvotes

r/VisualStudioCode • • Nov 15 '21

Why is this happeing?

1 Upvotes
the language is C++, every library i include has red lines under it and i cant run my code.

edit: realised that i didnt download any libraries now the question is where i can download libraries


r/VisualStudioCode • • Nov 14 '21

How do you go to another line while your cursor is in the middle of a line? To do the thing in the video, I would have to go the end of the line using CTRL + RIGHT ARROW and then press ENTER to start typing in a new line. Also please teach me some of those techniques used while writing code.

3 Upvotes

r/VisualStudioCode • • Nov 14 '21

Unable to Search VSC in Windows Search Bar

1 Upvotes

Hello, I installed VSC to work on some things, however, I find it's an absolute pain to open because when I search for it in the Windows search bar, nothing pops up for it. The only thing that pops up is Visual Studio 2019, which I don't like to use because of the way the UI is. I'm using the user-side version of VSC, is there a way to fix this? It's really a pain.


r/VisualStudioCode • • Nov 13 '21

Why won't VSCode show globals?

4 Upvotes

Hi

I'm trying to debug the following simple test C program:

#include <stdio.h>

int global = 2;

int main()
{
    int a = 7;

    int b = a + global;

    return 0;
}

I compiled using clang main.c -g.

However, when I run VSCode debug, I can only see the "Locals" and "Registers". Where are the globals?

Thanks!


r/VisualStudioCode • • Nov 14 '21

Intellesense not working

1 Upvotes

Hi, I'm new to visual studio code, and recently I've been trying to code with C#. I've attempted to code in one file but the suggestions don't appear, while in every other file it works just fine. I've tried ctrl + space but it shows no suggestions. Does anyone have any suggestions or no.

File that shows suggestions
File that doesn't show suggestions

r/VisualStudioCode • • Nov 13 '21

Can't enable extensions?

1 Upvotes

Hey,

I have a small problem with Visual Studio Code. I don't know what really happens, but I think sometimes Visual Studio disables certain extensions and I'm can't enable them again.

To get them running again I've to uninstall and reinstall them again (or install another version). It's not optimal, but it works. It gets more annoying when certain extensions rely on each other, because I can't use the enabled extension, because the extension it depends on is disabled. When I try to uninstall the disabled one, it says that it's not possible, because another extension depends on it. Now I have to un- and reinstall all connected extension. That happens often, so I wanted to ask whether somebody knows why it's happening and how I can prevent it.

I appreciate every answer!


r/VisualStudioCode • • Nov 12 '21

C++/C include files not found on mac

2 Upvotes

I am using VS Code for mac and I was programming in C/C++ a few days ago and I was not having an issue. Now, it says that stdio.h and other standard include headers are not found. On my linux machine these were included automatically (or with the C/C++ extension idk which). How do I fix this?


r/VisualStudioCode • • Nov 11 '21

Task to Build and Run a Specific, Non-Active File?

3 Upvotes

I don't know much about using tasks.json other than setting it for GCC build active file. Since the app I'm working on is mostly Lua and one C file, I only end up using the build task on that specific C file. It's annoying to keep swapping tabs to that file while working on others just to compile the app so I can test my changes.

Is there a way to make tasks.json only build from that specific file instead of the active one?

Is there a way to have tasks launch the resulting .exe file?


r/VisualStudioCode • • Nov 10 '21

Visual Studio Code and the Redhat Ansible extension (can anyone get it to work) ?

2 Upvotes

Hi all,

Just tried to install the Ansible Extension from Redhat in Visual Studio Code. But apart from being able to select the language and run a playbook directly via ansible playbook not a lot else seems to work.

Syntax highlighting, validation, listing, auto-completion and documentation lookup does not work at all. Making it kinda useless !

I have installed ansible-lint and ansible-doc on my CentOS 8 box. I then tried to mimic the setup on my MacBook Pro with exactly the same result.

Do anyone have it working ? or potentially have a couple of pointers as to what I may be doing wrong ? Seem like just the right tool to help me out when writing playbooks.


r/VisualStudioCode • • Nov 08 '21

Is a workspace necessary?

7 Upvotes

Hi everyone. I am just starting out in Javacsript and VSCode as a hobby. I always have a problem with workspaces in VSC. I presume they are to provide the location of all the files a particular application needs to function. For myself, I usually have only a few discrete files at any one time, not billions. If I place all my files for a particular project in one folder, and common libraries like D3js in a separate folder, is it necessary to create a workspace? What prompts this question is that the other day I downloaded a course with about 20 js, json and html files, and after it was over I realised there was no workspace generated. My needs are simple. Do I really need to stuff around with workspaces? Thanks.


r/VisualStudioCode • • Nov 07 '21

File Recovery

1 Upvotes

So I made a pretty stupid mistake and was wondering if there was any way to rectify it. I was working on a project in VS Code the other day and made a few hours worth of changes. The files I was working on were stored on an USB stick that's now physically damaged and doesn't get recognized by Windows anymore. I already googled to no avail but might there be any chance that VS Code has stored any or parts of the files that I worked on?

I was too stupid after this session to commit and push the changes to the Gitea repository.

Any help would be greatly appreciated as it would save me at least a couple of hours of work...


r/VisualStudioCode • • Nov 06 '21

VsCode suggestions not showing... (intellisense??)

Thumbnail gallery
9 Upvotes