ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

C++Namespace​Tool

by myurtoglu ALL

Simple C++ namespace refactoring package for Sublime Text 2 & 3

Details

Installs

  • Total 18K
  • Win 10K
  • Mac 2K
  • Linux 6K
Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15
Windows 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 2 0 1 0 0 1 1 1 1 0 1 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 4 1 0 1 0 0 1 1 0 0 0 0 0 0 1
01234Apr 29Apr 26Apr 23Apr 20Apr 17Apr 14Apr 11Apr 8Apr 5Apr 2Mar 30Mar 27Mar 24Mar 21Mar 18Mar 15Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 1Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 1Apr 20 Linux: 1 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 1 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 1 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 1Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 1 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 1 Windows: 1Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 4 Mac: 0 Windows: 0Mar 28 Linux: 1 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 2Mar 26 Linux: 1 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 1 Mac: 0 Windows: 0Mar 22 Linux: 1 Mac: 0 Windows: 1Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 1Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 1 Mac: 0 Windows: 0Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 1Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 1Apr 20 Linux: 1 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 1 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 1 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 1Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 1 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 1 Windows: 1Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 4 Mac: 0 Windows: 0Mar 28 Linux: 1 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 2Mar 26 Linux: 1 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 1 Mac: 0 Windows: 0Mar 22 Linux: 1 Mac: 0 Windows: 1Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 1Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 1 Mac: 0 Windows: 0Apr 29 Linux: 0 Mac: 0 Windows: 0Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 1Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 1Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 1Apr 20 Linux: 1 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 1 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 1Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 1 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 1Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 1Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 1 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 1 Windows: 1Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 4 Mac: 0 Windows: 0Mar 28 Linux: 1 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 2Mar 26 Linux: 1 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 1 Mac: 0 Windows: 0Mar 22 Linux: 1 Mac: 0 Windows: 1Mar 21 Linux: 0 Mac: 0 Windows: 1Mar 20 Linux: 0 Mac: 0 Windows: 1Mar 19 Linux: 0 Mac: 0 Windows: 1Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 1Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 1 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

C++NamespaceTool is a simple C++ namespace refactoring package for Sublime Text 2 & 3.

Installation

C++NamespaceTool can be installed using Package Control with the Install Package option.

Description

In C++ programming, writing using namespace std is considered a bad practice. The preferred way is to either explicitly state somewhere at the top which functions, classes, and types are used with using namespace::word statements or to explicitly type the namespace (usually std) at each occurence of the word. Sometimes, starting with one of the options, the programmer may want to convert to the other option. C++NamespaceTool is designed with the goal of automating this task.

Usage

The shortcut is Ctrl-Shift-R on all platforms (Right-click->Refactor namespace should also appear and do exactly the same work when C++ files are open). When using statements are selected, activating the tool will convert the selected using statements to inline namespace::word format. When inline namespace::word items are selected, activating the tool will convert all occurences of the selected items into just word and put a using statement at the top of the file.

Example usage:

Using the keyboard shortcut:

Using the right-click context menu:

Configuration

You can add namespaces besides std (warning: sub-namespaces are not supported at the moment), and file extensions for the right-click menu item to appear (most frequently seen file extensions are already in the configuration file) here: Preferences -> Package Settings -> C++NamespaceTool->Settings.

You can also change the shortcut key here: Preferences -> Package Settings -> C++NamespaceTool->Key Bindings.

Contact

You can leave bug reports, feature requests, or comments using the issues section.

Thanks!

Thank you for your interest in this package!