Sublime Text C++ Mac
- TextWrangler is a free program from the App Store, or you can download Sublime Text, which has an indefinite trial mode (this is our current favourite text editor). How to learn C in Mac OS X: How.
- JsPrettier is a Sublime Text Plug-in for Prettier, the opinionated code formatter. GitHub - jonlabelle/SublimeJsPrettier: JsPrettier is a Sublime Text Plug-in for Prettier, the opinionated code formatter.
Sublime Text 2 stores the files in /Library/Application Support/Sublime Text 2/Settings, in the.sublimesession files that are located there. The contents of those files are a large JSON blob that contains the individual tab contents.
C/C++/C#/Java code formatter/beautifier with AStyle.
Details
Installs
- Total119K
- Win65K
- Mac23K
- Linux31K
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 | 3 | 42 | 35 | 29 | 33 | 39 | 47 | 36 | 31 | 20 | 24 | 28 | 40 | 33 | 31 | 42 | 31 | 35 | 47 | 24 | 51 | 48 | 31 | 28 | 34 | 23 | 38 | 31 | 36 | 59 | 24 | 39 | 45 | 25 | 28 | 40 | 27 | 26 | 25 | 33 | 38 | 25 | 31 | 42 | 36 | 34 |
Mac | 1 | 7 | 9 | 3 | 5 | 10 | 4 | 3 | 2 | 2 | 3 | 7 | 6 | 9 | 4 | 10 | 6 | 16 | 8 | 6 | 5 | 9 | 16 | 5 | 6 | 12 | 9 | 10 | 9 | 8 | 7 | 5 | 10 | 8 | 8 | 12 | 11 | 2 | 2 | 6 | 6 | 7 | 11 | 7 | 5 | 4 |
Linux | 1 | 12 | 13 | 4 | 6 | 6 | 11 | 12 | 7 | 6 | 6 | 7 | 15 | 17 | 4 | 12 | 6 | 14 | 16 | 5 | 15 | 10 | 10 | 10 | 9 | 5 | 7 | 11 | 13 | 10 | 8 | 8 | 14 | 12 | 11 | 8 | 10 | 10 | 14 | 10 | 10 | 5 | 12 | 11 | 7 | 13 |
Readme
- Source
- raw.githubusercontent.com
Description
SublimeAStyleFormatter is a simple code formatter plugin for Sublime Text.It provides ability to format C, C++, Cuda-C++, OpenCL, Arduino, C#, and Java files.
NOTE: Syntax files required to be installed separately for Cuda-C++ and OpenCL.
Donation
If you find my work useful, please consider buying me a cup of coffee, alldonations are much appreciated :)
Installation
With the Package Control plugin
The easiest way to install SublimeAStyleFormatter is through Package Control.
Once you have Package Control installed, restart Sublime Text.
- Bring up the Command Palette (Ctrl+Shift+Pon Windows and Linux. ⌘+⇧+P on OS X).
- Type “Install” and select “Package Control: Install Package”.
- Select “SublimeAStyleFormatter” from list.
The advantage of using Package Control is that it will keep SublimeAStyleFormatter up to date.
Manual Install
Without Git:
Download the latest source code,and extract it to the Packages directory.
With Git:
Type the following command in your Sublime Text 2 or Sublime Text 3 Packages directory:
git clone git://github.com/timonwong/SublimeAStyleFormatter.git
The “Packages” directory is located at:
Sublime Text 2
- Windows:
%APPDATA%Sublime Text 2Packages
- Linux:
~/.config/sublime-text-2/Packages/
- OS X:
~/Library/Application Support/Sublime Text 2/Packages/
Sublime Text 3
Sublime Text Package C Language
- Windows:
%APPDATA%Sublime Text 3Packages
- Linux:
~/.config/sublime-text-3/Packages/
- OS X:
~/Library/Application Support/Sublime Text 3/Packages/
Usage
Key Bindings
The default key bindings for this plugin:
Windows, Linux:
- Ctrl+Alt+F: Format current file.
- Ctrl+K, Ctrl+F: Format current selection.
OSX:
- Ctrl+Alt+F: Format current file.
- ⌘+K, ⌘+F: Format current selection.
Command Palette
Open the command palette, it appears as SublimeAStyleFormatter: Format Current File
andSublimeAStyleFormatter Format Current Selection
.
Settings
Per-project Settings
Before starting, you may want to have a look at SublimeAStyleFormatter.sublime-settings.
To edit your project setting, select Project/Edit Project
from main menu. A project setting containsper-project settings for SublimeAStyleFormatter should look like this:
For example, if you don't want to inherit the default settings, instead, use your own astylerc file forC and C++ individually, then your project setting might look like this:
What's New
License
This plugin is using MIT License:
Credits
Artistic Style - A Free, Fast and Small Automatic Formatter for C, C++, C#,and Java Source Code.
Licensed under GNU Lesser General Public License version 3.0
Donors
Added in: 3.2
Sublime Text's Git integration includes the following components:
Please note: the following documentation discusses the implementation of the Git integration as seen with the Default and Adaptive themes that are included with Sublime Text. Via the theme engine, it is possible for third-party themes to change the visual presentation of information, in which case the following documentation may not be accurate.
Side Bar
Sublime Text 3 Download Windows
Files and folders displayed in the side bar will include a status badge along the right-hand edge, when modified. This includes files and folder in the Folders section of the side bar, along with files in the Open Files section. Ignored files and folders are de-emphasized in the side bar by reducing the opacity of the name.
When the mouse pauses over a status badge, a tool tip will be displayed indicating the status of the file, or in the case of a folder, the status of the contained files and folders.
Status Badge Key
The following table indicates the meaning of each badge. Please note that the color of the badges will be slightly different as they adapt to the closest hue in the active color scheme.
- Untracked
- Modified
- Missing
- Staged Addition
- Staged Modification
- Staged Deletion
- Unmerged
When a folder contains files with multiple statuses, the badge most toward the end of the above list will override all others.
Status Bar
When the focussed file us containing within the working directory of a Git repository, the status bar will contain the name of the current branch, along with the number of files that are untracked, modified, staged or unmerged. The status bar element will look like:
Diff Markers
Sublime Text's incremental diff functionality ties in with the Git integration. By default, the incremental diff functionality tracks changes to the file since it was last saved, but it is also possible to diff against HEAD.
Here is an example of what the diff markers look like in action, using the Mariana color scheme:
27 | |
28 | A line that was added |
29 | |
30 | A modified line |
31 | followed by another modified line |
32 | |
33 | The line before this was deleted |
34 |
Changing the setting git_diff_target to 'head'
will modify the diff markers to display a diff versus the version of the file at the Git repository HEAD, as opposed to the version of the file in the working directory.
See the incremental diff documentation for more information and examples, including instructions for viewing inline diffs, navigating between hunks and reverting changes.
Sublime Merge Integration
The Git features available in Sublime Text were derived from work that went into our other product, Sublime Merge. Sublime Merge is a full-featured, blazing-fast Git client built upon the technologies from Sublime Text.
Since editing source code and prose requires different tools and workflows than managing a Git repository, we opted to integrate the most appropriate Git functionality into Sublime Text, but leave more advanced features in Sublime Merge. The following integration points make it easy to jump into the appropriate Git context:
Editor Context Menu
- Open Git Repository…
- File History…
- Line History…
- Blame File…
Side Bar Folder Context Menu
- Open Git Repository…
- Folder History…
Side Bar File Context Menu
- Open Git Repository…
- File History…
- Folder History…
- Blame File…
Command Palette
- Sublime Merge: Open Repository
- Sublime Merge: Folder History
- Sublime Merge: File History
- Sublime Merge: Blame File
Settings
Enables Git integration
Controls the behavior of incremental diff for files in a Git repository. Valid values include:
'index'
– diff against the Git index'head'
– diff against the file at HEAD
'index'