I tried Visual Studio before, and really liked the looks and professionalism it has to it, and wanted to continue using it, but it turned out to be a big annoyance to study with, as I had to create a project and a program to test my scripts, so I left it. !but! today I saw this tutorial and the guy in the video used Visual Studio like one would use codeblocks - how did he do it?
Asked
Active
Viewed 188 times
-1
-
1I don't understand your question. What do you mean by 'scripts'? C++ is a compiled language, not a scripting language. I'm not familiar with codeblocks, can you describe how "one would use codeblocks" and perhaps people familiar with Visual Studio can help you achieve the same thing. – mattnewport Sep 16 '15 at 17:03
-
I guess OP wants to just write/open a cpp file and the make a runnable program with one click. This isn't how VS works. – deviantfan Sep 16 '15 at 17:05
-
Deviantfan - true, that's exactly what I want, I guess I will just not use visual studio until I'm going to make something bigger than a single script – Tomer8009 Sep 16 '15 at 17:10
-
1They are not "scripts". – crashmstr Sep 16 '15 at 17:11
2 Answers
0
1) Create an empty project (New -> Project -> Visual C++ -> General -> Empty project
).
2) Right click your project in the Solution Explorer
and add a new file (Add -> New Item -> C++ File
and name it somehow (I always name it as main.cpp
)
3) Double click the file and here you go!

Eldar Dordzhiev
- 5,105
- 2
- 22
- 26
-1
I found the way, sorry for the dumb question. an answer in case somebody googles it - you need to open an empty project, and than in the project explorer menu right click and than click add, than add cpp file.

Tomer8009
- 189
- 2
- 3
- 11
-
2
-
@crashmstr It will compile the code. Do not confuse empty projects with empty solutions. – Eldar Dordzhiev Sep 16 '15 at 17:14