how to run without exe - visual-studio-code

i used atom (with gpp-compiler) and i could compile with no .exe file output for c++ development.
but from now on, i want to change my developing environment to VS code and so
I compiled with code runner but i see there is output .exe files..
can i compile with no .exe output?
i tried to change code-runner settings but, it didn't work..
or is there vs code c++ add-on with no .exe output ?
i am using mingw gpp compiler
thanks for your help

If you are using vscode for problem solving only, you can use cph extension. CPH generates a cph folder in the working directory but in cph settings you can provide a custom folder path to store the non .cpp file, which makes the folder look clean.

Related

Configuring VSC clang format with global.clang-format file

I basically have a similiar question to this one:
How can i configure clang format without .clang-format file in every workspace?
I'm using the Visual Studio Code editor (version 1.43) with the Clang-Format extension developed by Xaver (https://marketplace.visualstudio.com/items?itemName=xaver.clang-format#overview)
I adjusted the clang extension settings "Clang-format: Executable" option to point to the "clang-format.exe" of my VSC installation.
Furthermore I set "Clang-format: Style" to "file".
My clang-file is currently located inside my projects source folder.
As I want to use my clang settings for every project and don't want to copy the clang file into every project workspace manually (and maybe have to change every single copy later on), I tried to make the extension use a globally located clang-file which is inside the VSCs extention folder.
So my first approach was to relocate the clang-file into the "VSC 1.43\data" directory.
My second attempt was to locate it right inside the extension folder "C:\User\VSC 1.43\data\extensions\xaver.clang-format-1.9.0" where a default file was already present.
Unfortunately both attempts seem not to work. I can invoke the formatting with "Format Document" but another clang file seems to get utilized.
Only if I put the file back into the source code directory, my clang rules are getting utilized correctly.
So basically:
MyProject\SourceCode\clang-file --> Works
VSC\data\clang-file --> Doesn't work
VSC\data\extensions\xaver.clang-format-1.9.0\clang-file --> Doesn't work
Can I tell the extension to search for the clang file inside of the extensions installation directory instead of the current workspace?
Note: I just installed the clang-format extension and adjusted the mentioned extension settings above. I did not tamper with the VSC settings.json.
Thank you in advance and best regards :)
Evox402
As specified in the documentation:
When using -style=file, clang-format for each input file will try to find the .clang-format file located in the closest parent directory of the input file. When the standard input is used, the search is started from the current directory.
Actually I believe it searches for either .clang-format or _clang_format.
This explains:
MyProject\SourceCode\clang-file --> Works
You could move the .clang-format file to MyProject, or any parent directory above that, so that it is shared between projects.

Using launch4j to build executable with encoding option

I'm trying to write korean to a txt file. I've done the coding part and exported project to runnable jar.
When I run jar file using terminal as Java -Dfile.encoding="UTF-8" -jar Utul.jar it works perfectly fine.
Now I'm trying to make .exe using launch4j can anyone help me set this option? In output file I'm getting gibberish instead of Korean characters.
I've got the answer now. I wasn't aware of the JVM options field under JRE tab. I included this option there and result was satisfactory.

Unknown VST project files

I am trying to build a VST on Windows, using MinGW GCC compiler, and Cmake build system.
I am using this VST project as an example. It used cmake to build a visual studio project. I am rebuilding the project to work with MinGW I hope!
In the resources folder of the project there is a .rc file, and .vstxml file. I am confused as to what these are. Are the used by visual studio? Are the needed by MinGW?
https://github.com/gijzelaerr/gijzelijzer
The RC file is probably used for the GUI to bundle resources in the VST's DLL. Not sure what the VSTXML file is, but it's probably associated with the GUI again. Regardless, if you are making a GUI-less plugin just to get started, you won't need either of these files.

CoffeeScript For NetBeans 8.0 Plugin: Set Target Folder For Compiles JS

I am using this Plugin for NetBeans CoffeeScript For NetBeans to compile my CoffeeScript File to JS.
For the project I have this folder.
http://prntscr.com/7euyfe
The coffee file will go to the app/coffee and the compiled goes to app/js.
What I want is, when I compile the File, it will go to the /app/js folder. But as it stands, it only dumps the file on the same folder where the coffee file is.
There is a setting in the Tools > Options, where I can set the target directory as seen in the screenshot.
http://prntscr.com/7euyur
But when I set it, the compiled result became like this.
Is there anyone who use NetBeans know how to do set this up?
You can use Grunt/Gulp to compile coffescript instead of the plugin. Set watcher (grunt-contrib-watch) to watch your coffee scripts files and set the watcher to execute grunt-contrib-coffee task upon file save.

eclipse run configuration- program does not exist - but it does

just what the heck is it?
the program is there right in the projects folder.
it cant seem to detect its own project folders debug.
i am using posix style paths for cygwin on windows. it compiles and builds the exe fine.
now it cant auto detect the exe in the projects workspace.
I had even tried adding the project folder path to the include settings. both in windows and posix style . but neither does that show up in the project explorer nor does it work.
earlier i tried using gnu style paths but the gdb didnt work.