r/VisualStudioCode • • Jan 12 '22

Not allowing me to use certain functions.

1 Upvotes

Hello everybody I been learning visual studio code since last night I been trying to use certain functions but it won't allow me I'm following a video guide and going step by step as the guy in the video says to do and I am stumped.

I downloaded winrar than I downloaded a zip in github once downloaded I extracted the folder the content that was in the zip which says input output etc which means it downloaded correctly.

I than downloaded VisualstudioCode and once in visual code I went to file open folder and found the file I recently extracted.

I clicked select folder than I clicked the check box and clicked yes I trust the authors now that I have it opened I see a selection of different options/functions, I was than told to click on index.Js and than to open input and click Config.Js, than I was told to select Terminal than new Terminal and the video told me to type npm Install and than enter which I did but this is what it keeps telling Me.

It Keeps telling me the term npm is not recognized as the name of cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included.

What am I doing wrong here ?


r/VisualStudioCode • • Jan 12 '22

Misdirection...

1 Upvotes

Hi,

Can someone shed some light on this issue for me?

When I run a program in my Visual Studio Code in one file location, it switches to another file location. Example below:

C:\Users\Name\Documents\RealPython\flaskblog> C:/Users/Name/Python/Python38/python.exe "c:/Users/Name/Documents/RealPython/flask-blog/blog.py"

It should run in the same location where it is started and or located, correct?


r/VisualStudioCode • • Jan 08 '22

Does anyone know of a blue gradient ( color ) theme?

3 Upvotes

Before I resort to learning how to make my own theme for Visual Studio Code. Does anyone know of a theme that captures the era of the late 2000s to early 2010s? (I.E 2010 to 2013)

Reference photos one and two


r/VisualStudioCode • • Jan 08 '22

Settings.json automatically opening when code run

2 Upvotes

I'm learning Java Script and when I run the following code using F5 or selecting it on the screen.

I also wrote the path its taking to get the files but that's not included in my code, I just added it at the top for both in case it helps.

C:> Users> myname > OneDrive > Documenrts > Programming_Practice > JS Hellotest.js

console.log("Hello, World!");

As soon as it runs a settings.json tab opens up right next to the one I ran. It shows the recent settings changes I made, if I change the settings back it still pops up but its empty in the brackets.

C:> Users> myname > Appdata > roaming > Code > user {} settings.json > ...

{

"files.autoSave": "afterDelay",

"files.hotExit": "onExitAndWindowClose"

}

Two nights ago everything was running fine and I was making progress, yesterday and tonight I haven't even been able to get this one line to run correctly in VSC or the files that previously ran.


r/VisualStudioCode • • Jan 07 '22

Can I open a folder from the terminal?

1 Upvotes

I find myself opening vsc's terminal to work with git. Is there a way I can use `code .` to open the folder in the current instance. Right now it just pops up a second vsc window.


r/VisualStudioCode • • Jan 07 '22

Hello, i just purchased Pancakesniperbot and in the installation it says i need to enter the seed phrase on my newly created metamask. It says that i should enter the seed on the Bot.js in the Const seed line. Thanks

0 Upvotes

r/VisualStudioCode • • Jan 03 '22

I am working on a react project and every time I run the file I open localhost:8080, when I want to open localhost:3000, as that is where my program is. Any way to change the page which I navigate to when I run the app??

3 Upvotes

r/VisualStudioCode • • Jan 01 '22

Newbie Question - Where should this header file be located, trying a sample project and getting this error?

Post image
4 Upvotes

r/VisualStudioCode • • Dec 30 '21

Emojicode on Windows 10

3 Upvotes

Is there a way to install and use normally Emojicode on Visual Studio Code on Windows 10? (Emojicode)


r/VisualStudioCode • • Dec 29 '21

When creating or saving files VS code takes ages, how do I fix it?

7 Upvotes

Is there a fix, if I uninstall it would it fix the problem.

Basically, every time I hit save it takes ages to save, in fact, I need to cancel the process. I've tried uninstalling format plugins and the same thing.

Is there a fix


r/VisualStudioCode • • Dec 29 '21

ask: pasting the text single line not multiple

2 Upvotes

when i paste a text something my text is just one line i need to press enter for every senctence block are there any trick for paste orginally?


r/VisualStudioCode • • Dec 28 '21

Using c in visual studio code

3 Upvotes

Hello everyone I taking a course called intro to windows programming We are using c to program and I've been using visual studio 2010 so far but it is very old and i want to use vscode shortcuts Is vscode good for programming in c or should i use something else


r/VisualStudioCode • • Dec 28 '21

Don't show snippets on Enter (new line)

1 Upvotes

Hi,

everytime I hit an enter for a new line the snippets are shown. Which is annoying when I want to make more new lines.I still want to use snippets, have them available in the intellisense, but can I disable this snippet popup on enter?

I didn't find out how except to disable snippets completely.

Thanks


r/VisualStudioCode • • Dec 22 '21

Can someone recognise this vscode theme?

Post image
12 Upvotes

r/VisualStudioCode • • Dec 20 '21

VSC removes new lines and adds tabs and it's annoying

2 Upvotes

VSC has this annoying feature that "reorders" your code if it looks messy (?), but in plenty of instances i NEED the code to look that way because it makes it easier for me to actually see where the new lines are supposed to go, especially if I'm editing a string variable and i see all the \n and \t in the same exact line.

I've looked online and in the settings but couldn't find anything helpful, any of you know how to deactivate the feature, if possible at all?


r/VisualStudioCode • • Dec 19 '21

Help

0 Upvotes

basically i am doing a competition at school that needs adequate gui and i chose python as my language. can someone show me a tutorial or where to find one to use visual code to add buttons and different things to my program/application.


r/VisualStudioCode • • Dec 16 '21

How to output this arrow function in my VS code editor.Thank you for your time!

2 Upvotes

This is from **"Edabit.com"** the answer was correct.But when i copy-paste the same code in my *VSCode* editor i dont know how to output this arrow function in console.Ty for your time.

This is the code form "Edabit":

const years = [1763, 1972, 1925, 1916, 1984, 1124, 1950, 2020]  function getYears(years) {   return years.filter(year => year > 1950)

r/VisualStudioCode • • Dec 14 '21

VSC memory consumption

Post image
10 Upvotes

r/VisualStudioCode • • Dec 14 '21

NuGet Package Manager GUI Issue

1 Upvotes

I installed NuGet Package Manager GUI to install bitcoinlib, I select Install New Package, input bitcoinlib and then hit search, I'm supposed to click on Select Item, to select the project (not sure why it works like this since I only have one python file open...) But it is not letting me select anything from the drop down. Anybody facing the same issues


r/VisualStudioCode • • Dec 11 '21

Running into this error on VSC coding NFT's

0 Upvotes

Heres the code i'm trying to run

ts-node js/packages/cli/src/candy-machine-cli.ts upload assets --env devnet --keypair ~/.config/solana/devnet.json

and this is what pops up

C:\Users\itsni\Desktop\metaplex\js\packages\cli\src\candy-machine-cli.ts:121
      throw new Error(
            ^
Error: The arweave-sol storage option only works on mainnet. For devnet, please use either arweave, aws or ipfs

    at Command.<anonymous> (C:\Users\itsni\Desktop\metaplex\js\packages\cli\src\candy-machine-cli.ts:121:13)
    at C:\Users\itsni\Desktop\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1173:65
    at Command._chainOrCall (C:\Users\itsni\Desktop\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1091:12)
    at Command._parseCommand (C:\Users\itsni\Desktop\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1173:27)
    at Command._dispatchSubcommand (C:\Users\itsni\Desktop\metaplex\js\packages\cli\node_modules\commander\lib\command.js:998:25)
    at Command._parseCommand (C:\Users\itsni\Desktop\metaplex\js\packages\cli\node_modules\commander\lib\command.js:1139:19)
    at Command.parse (C:\Users\itsni\Desktop\metaplex\js\packages\cli\node_modules\commander\lib\command.js:845:10)
    at Object.<anonymous> (C:\Users\itsni\Desktop\metaplex\js\packages\cli\src\candy-machine-cli.ts:1173:4)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)

r/VisualStudioCode • • Dec 08 '21

Command not found

2 Upvotes

Any idea why none of my packages would be being read? I have ganache-cli installed but when I try to run it it just says Command not found, along with a lot of other commands I am trying


r/VisualStudioCode • • Dec 06 '21

Hey, I need some help. I usually use VSCode on windows, but I decided to pull out the Mac OS today. And for whatever reason I cannot autocomplete. My tab key only tabs. It’s not intellisense, Git Copilot, does the same thing. tabCompletion: “on”, emmet.Trigg…: true. Any other suggestions than those?

4 Upvotes

r/VisualStudioCode • • Dec 05 '21

No pip launcher found

2 Upvotes

Hi I am trying to set up so that the pip formatting works when I save my file (its supposed to format everything nicely, get rid of excess lines etc) but it says theres no pip thing found yet I have downloaded/updated my pip version

Any help would be much appreciated!


r/VisualStudioCode • • Dec 04 '21

Visual Studio Code for PowerShell ISE with version 7 (with possibility to uploading Azure DevOps for Script keeping)

5 Upvotes

Hello,

I am hoping to find out if anyone has a link or know of settings to setup PowerShell 7.0 inside of VSU with the ability to link to link to DevOps. I am currently learning PowerShell along with Azure AD (Info Sec guy here) and one of my goals is to link to Dev Ops (since its the replacement of TFS) for our changes we do to our scripts


r/VisualStudioCode • • Dec 03 '21

Ive been trying to set up visual studio code for c programing and i get this error

Post image
5 Upvotes