I’m trying to follow along to the CS50 YouTube video, and I’m stuck on one part (Week 1 - C) that requires VSCode. I downloaded it and put the code in, but the dollar sign as shown in the video was not in my terminal. And when I tried running the code, I kept getting the error message “The term is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.” I looked through settings and YouTube videos but they didn’t help or were too confusing. How do I fix this?
Hi, I'm a complete moron newbie to programming and don't know how anything works, was just wondering if there's any way to get vscode to just... run stuff? I started off with the full-on visual studio and started rewriting some basic stuff in C++ and everything just works right out of the box. I press CTRL + f5 and the code is compiled just fine. Not so with vscode for some reason.
Videos
Hello people i have been using VSC for 4 years. I always ran my code by pressing the play button, then the code was executed here https://gyazo.com/7073ec281996c36f8acdb690db1bc500
and it always allowed interaction with the user.
For exaple if i put in the coding zone this: string= input("insert a string) i could insert a string and the code will track the variable, and the code will continue be running. But i can't interact with the program anymore.
Running the program in the terminal gives me 2 issues:
1: I have to write everytime the name of the file(main.py) to execute it instead of pressing the play button.
2: I can't stop the execution by pressing stop. So i have to restart VisualStudioCode to kill the execution of the program.
So my question is: There is a 3rd choice? Is there somethiong i can install to properly execute .py files?
Thanks for advance
Hi beginner programmer here!
I've been really wanting to modify my vs code for quite a while now to run a code in terminal in another window just like when running code in DevC/C++ software.
I kept searching on youtube on how to do it but it always kept showing the same thing how to run code in terminal (integrated to the software), is there a way to modify vs code for this purpose it' just preferably better to run programs on another window imo.
I’ve been programming for years now, in multiple languages. I’ve never used an IDE or anything like vs code. I usually just use a text editor and a terminal to do all my coding.
This whole process is starting to get annoying so I downloaded vs code but I cannot get anything to work. I don’t know what I am doing. According to the tutorials, I should be able to press the debug and run button and vs code will compile and run my code, but I can’t get this to work. It’s saying I need a configuration, or that blah blah blah.
So far, I’ve only been able to get python to work. So my questions are: what is a configuration? Why do I need one? How do I get c++ to work with the push of one button?
I just recently downloaded VsCode and am now under severe shock because of how different this IDE is than Visual Studio. So, One thing that really ticks me off is the integrated terminal. I tried editing settings.json to "terminal.external.windowsExec": "C:\\WINDOWS\\system32\\cmd.exe",
and I tried changing the user settings' Terminal to "external" and I still can't figure out why my source code won't run in an external Terminal. I really want to like VsCode, but stuff like this Is really infuriating.
How about just opening a terminal if you don't want to use the integrated one?
Visual Studio is an IDE. VS Code is more of a text editor, you don't need to use it to run your code and I wouldn't recommend that either - it's better to be able to run your code independently of the editor you use.
If you’re coding in Java the java extension has an external terminal setting. Otherwise I have the same problem myself with Python :/
Hey guys I have this problem i`m trying to solve,
I have a project I run in VS code, but I run couple of different apps with npm run or docker so I have this script that runs all the apps inside terminal and open VS-code for every app I am building.
So what script basically do is I have these commands that open new tab in guake and execute different script inside each terminal tab and runs code along. So what I would like to do is to have this run inside VS-code terminal.
I hope you guys get what I`m trying to achieve.. :)
Thanks in advance
i’m completely new to vs code and coding in python. I am taking the harvard cs50P course to try and learn. I don’t understand how the terminal works and how to change it though. The instructors screen looks way different and I have a bunch of file information coming up in my terminal. How would i get rid of the user/file/ect? Also if anyone could explain what the difference between different types of terminals like power shell and command prompt. Any help is greatly appreciated.
I have a test this Friday, and my professor is very fond of seeing the output in the command prompt.
What will I do?
learning python in vs code and its kinda annoying to right click and then select run python file in terminal every single time to run a code is there a better way ?
and this happens. I'm very new.
Edit: Thanks ya'll. You're very helpful!
I'm SSHing into a remote server. I'm writing my code in Visual Studio Code. I can run the code on the remote server in the integrated terminal, but that requires me to copy and paste the code into the integrated terminal. Is there some shortcut that will allow me to send my code to the integrated terminal?
I like the look of windows terminal and it would be neat if it popped out a little window instead.
Is code something inherent to VS code, or to bash? Can I somewhere setup another IDE to open up when I use this command?
Hi. I am new to coding and i want to start my coding journey on visual studio code, the reason is, my friends said that you can use most if not, all the languages in one platform, so i find it very useful and less hassle. But the thing is, i do not know how to operate visual studio code. I tried to understand vsc but i got overwhelmed as i launched the platform for the first time and it threw a lot of information that i dont udnerstand, for example: downlaoding extensions and stuff.... do you guys can shower me some of advice onn what to do as a beginner.. thank you for those who wil respond...
not really new to programming - have been using notepad++ to write code and run code from the command line (mostly python, bash and windows batch)
have seen that many are using visual studio code and it looks like it is running the code in a window within visual studio code but when i run code it opens a new 'command' window, is it possible to have a window within visual studio code am i not seeing what they are running correctly
have been searching but dont seem to find anything
Hi everyone, so I am a little frustrated and annoyed because I am using the "Ctrl+alt+N" shortcut and it runs in an output terminal. But for some reason, my code isnt allowing me to input via keyboard for the code in this terminal. I need to run in the Python Terminal (manually clicking the "Run in Python Terminal" icon). I wish i could submit an image, but this community doesnt look like it allows that.
Is there a way to set keyboard shortcuts to these types of commands? It would make my life so much easier.
For example, on Matlab, we have the F5 keyboard shortcut to run the code without clicking the icon each time.
Dumbest of dumb questions but I'm new to this, and have never used VS Code before.
I've written a basic python file that I can run just fine by pressing the triangle in the upper right hand corner in VS Code.
However, for the life of me, I cannot figure out how to run the same file via a keyboard shortcut.
Shift Enter seems to only run whatever text is selected. F5 runs the file, but leaves me in a debug mode.
I'm probably missing something glaringly obvious, but how do I run the whole file via a shortcut..?
This is the solution, based on u/johnonymousdenim comment:
-
Run `Command+K+S` to open keyboard shortcuts.
-
Then type `Python: Run Python File in Terminal`. Select it.
-
You can then type whatever key binding you want to use to run your code. (I use Command+Alt+N)
There is an extension called “Code-Runner” which adds a shortcut to run the code “Ctrl+Alt+N” in the output window (which you can change to terminal window in the settings). But it gave me some problems after a while. The new solution is, go to keyboard shortcuts and map “Ctrl+R” to “run python files in terminal”. However I feel this is a short term solution since “Ctrl+R” was mapped to serveral different things (none of which I use currently). But does the job!
Whenever I tried to run any program in vs code insteed vs code terminal, a another terminal opens up, in that terminal code dose not even run. Please help me, if you know how to solve this problem
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.
If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:
-
Limiting your involvement with Reddit, or
-
Temporarily refraining from using Reddit
-
Cancelling your subscription of Reddit Premium
as a way to voice your protest.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
what command did you use to run it?