Sublime Text C++ Compiler Macro
Sublime Text is much lighter than Xcode because ST is not a full featured IDE, likc Xcode. What you'll end up doing is installing/using gcc or g directly via the command line (which happens to be my preferred way of working). Command line compiling can get to be tedious though with all of the parameters that need to be passed. Sublime Text has a build system already built-in, but the C/C builder doesn’t work properly with MinGW out of the box. Instead, we will create a new build file that will use the MinGW-w64 compiler we installed. Yup there's a way. Sublime Text is just a text editor like a more advanced form of Textedit on the mac. You can not compile code with it like you do in xcode.
Build 4113
- Improved performance when editing large files
- Improved OpenGL rendering performance
- Improved handling of deleted files
- Various syntax highlighting improvements
- subl can now be used to edit stdin, eg: echo test | subl | cat
- Syntax and indentation detection is now done when editing stdin
- Added syntax_detection_size_limit setting for controlling when syntax detection is skipped
- Theme: Improved scroll puck visibility
- Theme: Fixed adaptive theme not respecting themed_title_bar setting with light color schemes
- Middle clicking in the Open Files section of then sidebar will close the clicked on file
- Preserve Case now works with unicode characters
- Added reveal_menu setting for disabling revealing the menu when alt is pressed on Linux and Windows
- Safe Mode key binding can be disabled by creating a file named .Disable Safe Mode Shortcut in the data directory
- Fixed Ruby syntax highlighting in the Monokai color scheme
- Fixed a scenario where folders weren't being watched for changes
- Fixed underlines being drawn behind line highlight
- Fixed an infinite loop that could occur during syntax highlighting
- Fixed the append command's scroll_to_end parameter sometimes not working
- Fixed Goto Symbol sometimes being scrolled incorrectly
- Fixed multi-select file limit applying to sidebar
- Fixed auto-complete related hang in some large files
- Linux: Fixed print sometimes not working
- Linux: Fixed wrong order of yes/no buttons in GTK dialogs
- Linux: Fixed letters sometimes being cut off
- Windows: Always make a new window when launching main executable on Windows
- Windows: Fixed window icon not scaling properly on Windows
- Windows: Fixed globs not being expanded in some cases on Windows
- Mac: Fixed auto theme not changing with OS auto theme on macOS
Build and run single C# files from Sublime Text 2.
Installs
- Total35K
- Win27K
- Mac4K
- Linux3K
Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 5 | 7 | 4 | 3 | 10 | 6 | 9 | 9 | 5 | 6 | 9 | 10 | 7 | 12 | 1 | 4 | 8 | 3 | 8 | 11 | 8 | 9 | 11 | 11 | 7 | 9 | 8 | 7 | 6 | 5 | 6 | 7 | 9 | 4 | 9 | 15 | 13 | 1 | 6 | 6 | 3 | 6 | 8 | 9 | 3 |
Mac | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 0 | 0 | 1 | 2 | 2 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 |
Linux | 0 | 3 | 1 | 5 | 2 | 1 | 0 | 0 | 1 | 1 | 0 | 3 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 4 | 0 | 1 | 1 | 1 | 3 | 0 | 2 | 2 | 1 | 2 | 1 | 2 | 0 | 2 | 4 | 1 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 2 | 1 |
Readme
- Source
- raw.githubusercontent.com
Build and run single C# files from Sublime Text 2 on OSX and Windows.
Usage
With any *.cs file open.- Cmd + b
Compile filename.cs into filename.exe in current folder and output errors- Shift + Cmd + b
Run filename.exe in current folder
About
The aim of this plugin is to provide easy and fast and overhead-free access to the C# language. Without having to load heavy applications such as Visual Studio or Xamarin. This plugin provides a C# sandbox (usable for schools or other learning environments) and is not intended to be used to build production applications.
Dependencies
Assumes you have
mcs
andmono
commands available in your PATH.For Windows you should havecsc
in your PATH. If you have previously installed Xamarin Studio or Mono Develop you should have these available in your path. If you don't please read more at here or hereSublimeFixMacPath (for Mac users). Required because of updates to Mac OS. Enables Sublime to load your PATH variable.
Installation
Using Package Manager (recommended)
Sublime Text C++ Compiler
You can now install the C# build system through the package manager channel.The package is called “C# Compile & Run”
The old-school way
cd ~/Library/Application Support/Sublime Text 2/Packages/
git clone git@github.com:ChrOkh/chsharp-build-singlefile-sublime-text-2.git CSharpSinglefile
Sublime Text
Code-completion
If you want Visual Studio-style code completion, be sure to also install the awesome plugin CompleteSharp (available via package manager)
Example
Now we can write minimalistic C# console applications: