Anyone using VS Code?
-
Notepad++ is only for Windows, so VSCode has the potential to be useful to many more programmers.
Same opinion here. I like Notepad++, but there is a need for something simimilar on linux and especially for the people from the win-dev-world. Please I know about 'vi', but it's not my 1st choice only tool... please!
Something about which we often break our head: "In the name of the Compiler, the Stack, and the Bug-Free Code. Amen." (source unknown)
-
VS Code[^] Just found this a little bit ago have downloaded and kicking the wheels! Anyone else using it? Any tips, tricks or complaints?
New version: WinHeist Version 2.2.2 Beta
I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!I'm using it for Python. I was previously using Notepad++, but I'm finding the intellisense and code marking to be so much better than Notepad++, which, in turn, was better than Idle.
-
It's like Sublime Text but free. I use Sublime and VS Code alternatively and I have found that Sublime is a bit faster but that VS Code has native Git support. I still haven't decided which one to keep. ;P
I've never used Sublime, I use Notepad++ instead but I'm finding, at least for the web stuff I'm doing that VS Code is pretty OK. Yeah I like the native GIT support also. I tried to learn GIT several time, using several GUIs on several OSs and found it to be tedious and counter intuitive but on VS Code it's drop dead simple.
New version: WinHeist Version 2.2.2 Beta
I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist! -
I'm using it for Python. I was previously using Notepad++, but I'm finding the intellisense and code marking to be so much better than Notepad++, which, in turn, was better than Idle.
Daryl Shockey wrote:
which, in turn, was better than Idle.
ANYTHING is better then Idle. I tried it on the Raspberry Pi and ended up with Geany but think I'll see if VS Code will run on the Pi...wouldn't that be a kick!
New version: WinHeist Version 2.2.2 Beta
I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist! -
I'm really interested in what you found klunky about VS Code. I'm on the VS Code team and we are working on removing adoption blockers. If you can spare the time to describe what put you off the product, we'd really appreciate it. Then we can work on it and improve the experience. Thanks, Steven
Steven_Clarke wrote:
I'm on the VS Code team and we are working on removing adoption blockers.
Sure -- I'll fire it up again and let you know, if I get sidetracked (by work) ping me again either here or directly to remind me. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
-
Same opinion here. I like Notepad++, but there is a need for something simimilar on linux and especially for the people from the win-dev-world. Please I know about 'vi', but it's not my 1st choice only tool... please!
Something about which we often break our head: "In the name of the Compiler, the Stack, and the Bug-Free Code. Amen." (source unknown)
Sublime Text is still around for the Mac - shame it never got developed further than it did. TextWrangler (free) is ok(ish) too if you're desperate, but VS Code does a decent enough job too. I tend to use WebStorm on the Mac though.
I came into this game for the action, the excitement. Go anywhere, travel light, get in, get out, wherever there's trouble, a man alone. Now they got the whole country sectioned off, you can't make a move without a form.
-
I'm using it for Python. I was previously using Notepad++, but I'm finding the intellisense and code marking to be so much better than Notepad++, which, in turn, was better than Idle.
it's also a must have for Powershell editing... way better than the ISE and better than other powershell-oriented IDEs out there. also in this week's insiders build (now daily builds) you can now launch powershell as the integrated terminal too
-
VS Code[^] Just found this a little bit ago have downloaded and kicking the wheels! Anyone else using it? Any tips, tricks or complaints?
New version: WinHeist Version 2.2.2 Beta
I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!Pretty productive on Linux. I use it to write Node.js and Python. But the Vim plugin is like a toy :(
-
I'm really interested in what you found klunky about VS Code. I'm on the VS Code team and we are working on removing adoption blockers. If you can spare the time to describe what put you off the product, we'd really appreciate it. Then we can work on it and improve the experience. Thanks, Steven
SlOT: I have interacted with VS Code and since you (Steven Clarke) are on that team, the perfect opportunity to ask a question I can't seem to find an answer: Where is the Run command in VS Code? I typed in an exercise in Python 3.51 to learn some more of the language and could not get the program to execute to the output window. What I'm missing? TIA
Free your mind and the rest will follow, Don't be colorblind, don't be so shallow!
-
SlOT: I have interacted with VS Code and since you (Steven Clarke) are on that team, the perfect opportunity to ask a question I can't seem to find an answer: Where is the Run command in VS Code? I typed in an exercise in Python 3.51 to learn some more of the language and could not get the program to execute to the output window. What I'm missing? TIA
Free your mind and the rest will follow, Don't be colorblind, don't be so shallow!
Hi, Right out of the box, VS Code doesn't know how to run Python programs. There are two ways to tell it how to do so though. First, you can install a Python extension. We have some documentation that describes how to do this: Python documentation [^] Alternatively, you can set up a task to run the currently opened file. We have documentation on tasks here: Tasks in visual Studio Code[^] To set up a task, press Ctrl-Shift-B. If you don't have any tasks defined, VS Code will show a message box saying that no task runner has been configured. Click the button at the right hand side of the message box to configure a task runner. You'll see a drop down offering a list of different task runners. Choose the 'Others' option at the bottom. This will generate a file in the .vscode folder that shows how to configure VS Code to run an external program (e.g., python.exe). You can modify the example that is generated for you to look like this:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "python",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"
}This tells VS Code to run the python command (make sure your environment is set up to find python.exe in your path, otherwise specify the full path to python.exe as the value for the command field). The args attribute specifies that the current open file should be passed as an argument to the python command. Save any changes you make to this file, open the python file you want to run then press Ctrl-Shift-B. This will run the task you just specified on the currently open file. If this all works properly you should see the output from your python program in the Output window. In this example I've given above, the task assumes that the executable it launches won't seek any input from the user on the command line. There is a workaround for this posted here: Running python script in Visual Studio Code; how to get `input ()` to work? - Stack Overflow[
-
Hi, Right out of the box, VS Code doesn't know how to run Python programs. There are two ways to tell it how to do so though. First, you can install a Python extension. We have some documentation that describes how to do this: Python documentation [^] Alternatively, you can set up a task to run the currently opened file. We have documentation on tasks here: Tasks in visual Studio Code[^] To set up a task, press Ctrl-Shift-B. If you don't have any tasks defined, VS Code will show a message box saying that no task runner has been configured. Click the button at the right hand side of the message box to configure a task runner. You'll see a drop down offering a list of different task runners. Choose the 'Others' option at the bottom. This will generate a file in the .vscode folder that shows how to configure VS Code to run an external program (e.g., python.exe). You can modify the example that is generated for you to look like this:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "python",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"
}This tells VS Code to run the python command (make sure your environment is set up to find python.exe in your path, otherwise specify the full path to python.exe as the value for the command field). The args attribute specifies that the current open file should be passed as an argument to the python command. Save any changes you make to this file, open the python file you want to run then press Ctrl-Shift-B. This will run the task you just specified on the currently open file. If this all works properly you should see the output from your python program in the Output window. In this example I've given above, the task assumes that the executable it launches won't seek any input from the user on the command line. There is a workaround for this posted here: Running python script in Visual Studio Code; how to get `input ()` to work? - Stack Overflow[
Thanks for the answer. Right now my head hurts with all of what's required for what should be a straightforward command. I will revisit VS Code, but for now, it's Notepad ++ and repl.it online.
Free your mind and the rest will follow, Don't be colorblind, don't be so shallow!
-
Daryl Shockey wrote:
which, in turn, was better than Idle.
ANYTHING is better then Idle. I tried it on the Raspberry Pi and ended up with Geany but think I'll see if VS Code will run on the Pi...wouldn't that be a kick!
New version: WinHeist Version 2.2.2 Beta
I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!Mike Hankey wrote:
think I'll see if VS Code will run on the Pi
Looks like Scott Hanselman has already done that[^] - you have to build from source, but that's relatively simple on Linux...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Thanks for the answer. Right now my head hurts with all of what's required for what should be a straightforward command. I will revisit VS Code, but for now, it's Notepad ++ and repl.it online.
Free your mind and the rest will follow, Don't be colorblind, don't be so shallow!
Sorry, didn't mean to make your head hurt :-) Give the extension a try. It is simple to setup and not only does it allow you to run your Python code from inside VS Code it allows you to debug the code too. You can place breakpoints, step through the code, inspect variables etc. VS Code is a rich code editor that aims to support all sorts of different languages and runtimes. So there is going to be a little bit of configuration required to get it to do exactly what you want with a specific language and runtime. We're always looking for ways to make this easier though.
-
Mike Hankey wrote:
think I'll see if VS Code will run on the Pi
Looks like Scott Hanselman has already done that[^] - you have to build from source, but that's relatively simple on Linux...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Stuart thanks for the link, was going to look into that today. :thumbsup: It works great on Ubuntu without doing anything special and was using it yesterday to do some Node.js coding.
New version: WinHeist Version 2.2.2 Beta
I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!