Skip to content

yeahdongcn/Lin_NSLS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lin_NSLS

Xcode4 plugin showing completion for NSLS, NSLocalizedString and localizedStringForKey:value:table: It modified Lin plugin( https://github.com/questbeat/Lin )

NSLS

NSLS = #define NSLS(x) NSLocalizedString(x, nil)

Installation

Build the Lin, then the plugin will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.
Relaunch Xcode and Lin will make your life easier.

Usage

After installation Enable Lin will appear in Edit menu.

lin_ss01.png

Selecting a line with NSLS, NSLocalizedString or localizedStringForKey:value:table: will show completion (see Warnings section no popup shows).

lin_ss02.png lin_ss02.png

Narrowing down the lists by key.

lin_ss03.png

Warnings

.strings files must be UTF8

Completion popup won't show with empty .strings files

After modifying a .string file, dont forget to save otherwise new strings won't appear in completion popup

License

Lin_NSLS is released under the MIT License, see LICENSE.txt.

Releases

No releases published

Packages

No packages published