Compiling program as c++ 14 in Sublime Text 3 as default

前端 未结 3 1489
执念已碎
执念已碎 2021-01-12 07:48

I know that we can compile program as C++ using g++ compiler. But g++ compiler defaults to 98 version. To run it as C++ 14, we need to add -std=c++14 in termina

3条回答
  •  长情又很酷
    2021-01-12 08:25

    The best way to edit default files is to use PackageResourceViewer.

    Once installed, run the PackageResourceViewer: Open Resource command from the command palette. You will be shown a list of packages which you can navigate into to select the file you wish to edit.

    The selected file will be opened in a new document, and any changes will be saved to a new file located at Packages/PackageThatYouEdited/FileThatYouEdited.ext

    The benefit of this method is that the edited file in Packages will now override the original file that resides within the sublime-package file, but the original file will remain intact. Should you choose to delete the edited file, the original file in the sublime-package will once again be active.

提交回复
热议问题