Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Side by Side Diff: docs/linux_sublime_dev.md

Issue 2014393003: Small fix to Sublime Text documentation to move non-working instructions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Linux Sublime Dev 1 # Linux Sublime Dev
2 2
3 Sublime Text is a fast, powerful and easily extensible code editor. Check out 3 Sublime Text is a fast, powerful and easily extensible code editor. Check out
4 some [visual demos](http://www.sublimetext.com) for a quick demonstration. 4 some [visual demos](http://www.sublimetext.com) for a quick demonstration.
5 5
6 You can download and install Sublime Text 3 from the [Sublime Text 6 You can download and install Sublime Text 3 from the [Sublime Text
7 Website](http://www.sublimetext.com/3). Assuming you have access to the right 7 Website](http://www.sublimetext.com/3). Assuming you have access to the right
8 repositories, you can also install Sublime via apt-get on Linux. Help and 8 repositories, you can also install Sublime via apt-get on Linux. Help and
9 general documentation is available in the [Sublime Text 3 9 general documentation is available in the [Sublime Text 3
10 Docs](http://www.sublimetext.com/docs/3/). 10 Docs](http://www.sublimetext.com/docs/3/).
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 given file. 256 given file.
257 257
258 **Note**: Currently, only the Linux setup of SublimeClang is working. However, 258 **Note**: Currently, only the Linux setup of SublimeClang is working. However,
259 there are instructions below for Windows/Mac which you are welcome to try -- if 259 there are instructions below for Windows/Mac which you are welcome to try -- if
260 you can get them to work, please update these instructions ^_^ 260 you can get them to work, please update these instructions ^_^
261 261
262 More information on SublimeClang's functionality (including keyboard shortcuts) 262 More information on SublimeClang's functionality (including keyboard shortcuts)
263 can be found on the [SublimeClang GitHub 263 can be found on the [SublimeClang GitHub
264 page](https://github.com/quarnster/SublimeClang). 264 page](https://github.com/quarnster/SublimeClang).
265 265
266 ### Mac (not working)
267
268 1. Install cmake if you don't already have it
269 1. Install XCode
270 1. Copy libclang.dylib from XCode to the SublimeClang/internals folder:
271
272 ```shell
273 cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
274 git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang
275 cd SublimeClang
276 cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool chain/usr/lib/libclang.dylib internals/libclang.dylib
277 # Remove i386 from the build file since XCode's libclang.dylib is only a 64- bit version
278 sed -ie 's/CMAKE_OSX_ARCHITECTURES i386 x86_64/CMAKE_OSX_ARCHITECTURES x86_6 4/' src/CMakeLists.txt
279 # Copy libclang.dylib to the internals dir
280 # Make the project - should be really quick, since libclang.dylib is already built
281 cd src && mkdir build && cd build
282 cmake ..
283 make
284 ```
285
286 1. The rest of the instructions are the same, but when adding your project
287 settings, add these extra arguments to `sublimeclang_options`:
288
289 ```json
290 "sublimeclang_options":
291 [
292 ...
293 // MAC-ONLY: Include these options, replacing the paths with the correct i nstalled SDK
294 "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.p latform/Developer/SDKs/MacOSX10.10.sdk/usr/include/",
295 "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.p latform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1",
296 "-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De veloper/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/",
297 "isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.p latform/Developer/SDKs/MacOSX10.10.sdk",
298 "-mmacosx-version-min=10.7",
299 "-stdlib=libc++",
300 "-isystem", "/usr/include",
301 "-isystem", "/usr/include/c++/*",
302 ]
303 ```
304
305 ### Windows (not working)
306
307 You'll need cl.exe which can be installed with [the Visual C++ Build Tools
308 2015](https://blogs.msdn.microsoft.com/vcblog/2016/03/31/announcing-the-official -release-of-the-visual-c-build-tools-2015/).
309 You should have cl.exe on your `$PATH`, which you can get by running `C:\Program
310 Files (x86)\Microsoft Visual C++ Build Tools\Visual C++ 2015 x64 Native Build
311 Tools Command Prompt`.
312
313 Then you'll need a copy of libclang.so, which can be found on the [LLVM
314 website](http://llvm.org/releases/download.html). The instructions should be the
315 same as Linux from there.
316
317 ### Linux 266 ### Linux
318 267
319 1. Install libclang-dev to get a copy of libclang.so: 268 1. Install libclang-dev to get a copy of libclang.so:
320 269
321 ```shell 270 ```shell
322 sudo apt-get install libclang-dev 271 sudo apt-get install libclang-dev
323 ``` 272 ```
324 273
325 1. Build libclang.so and SublimeClang in your packages directory: 274 1. Build libclang.so and SublimeClang in your packages directory:
326 275
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 ```json 365 ```json
417 [ 366 [
418 { "keys": ["ctrl+f7"], "command": "compile_current_file", "args": {"target_bui ld": "Debug"} }, 367 { "keys": ["ctrl+f7"], "command": "compile_current_file", "args": {"target_bui ld": "Debug"} },
419 { "keys": ["ctrl+shift+f7"], "command": "compile_current_file", "args": {"targ et_build": "Release"} }, 368 { "keys": ["ctrl+shift+f7"], "command": "compile_current_file", "args": {"targ et_build": "Release"} },
420 ] 369 ]
421 ``` 370 ```
422 371
423 You can then press those key combinations to compile the current file in the 372 You can then press those key combinations to compile the current file in the
424 given target build. 373 given target build.
425 374
375 ### Mac (not working)
376
377 1. Install cmake if you don't already have it
378 1. Install XCode
379 1. Copy libclang.dylib from XCode to the SublimeClang/internals folder:
380
381 ```shell
382 cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
383 git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang
384 cd SublimeClang
385 cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool chain/usr/lib/libclang.dylib internals/libclang.dylib
386 # Remove i386 from the build file since XCode's libclang.dylib is only a 64- bit version
387 sed -ie 's/CMAKE_OSX_ARCHITECTURES i386 x86_64/CMAKE_OSX_ARCHITECTURES x86_6 4/' src/CMakeLists.txt
388 # Copy libclang.dylib to the internals dir
389 # Make the project - should be really quick, since libclang.dylib is already built
390 cd src && mkdir build && cd build
391 cmake ..
392 make
393 ```
394
395 1. The rest of the instructions are the same, but when adding your project
396 settings, add these extra arguments to `sublimeclang_options`:
397
398 ```json
399 "sublimeclang_options":
400 [
401 ...
402 // MAC-ONLY: Include these options, replacing the paths with the correct i nstalled SDK
403 "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.p latform/Developer/SDKs/MacOSX10.10.sdk/usr/include/",
404 "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.p latform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1",
405 "-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De veloper/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/",
406 "isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.p latform/Developer/SDKs/MacOSX10.10.sdk",
407 "-mmacosx-version-min=10.7",
408 "-stdlib=libc++",
409 "-isystem", "/usr/include",
410 "-isystem", "/usr/include/c++/*",
411 ]
412 ```
413
414 ### Windows (not working)
415
416 You'll need cl.exe which can be installed with [the Visual C++ Build Tools
417 2015](https://blogs.msdn.microsoft.com/vcblog/2016/03/31/announcing-the-official -release-of-the-visual-c-build-tools-2015/).
418 You should have cl.exe on your `$PATH`, which you can get by running `C:\Program
419 Files (x86)\Microsoft Visual C++ Build Tools\Visual C++ 2015 x64 Native Build
420 Tools Command Prompt`.
421
422 Then you'll need a copy of libclang.so, which can be found on the [LLVM
423 website](http://llvm.org/releases/download.html). The instructions should be the
424 same as Linux from there.
425
426 ## Building inside Sublime 426 ## Building inside Sublime
427 427
428 To build inside Sublime Text, we first have to create a new build system. 428 To build inside Sublime Text, we first have to create a new build system.
429 429
430 You can add the build system to your project file (`Project > Edit Project`), 430 You can add the build system to your project file (`Project > Edit Project`),
431 replacing `out/Debug` with your output directory (on Windows, replace /'s with 431 replacing `out/Debug` with your output directory (on Windows, replace /'s with
432 \s in `cmd` and `working_dir`): 432 \s in `cmd` and `working_dir`):
433 433
434 ```json 434 ```json
435 { 435 {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion) - 575 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion) -
576 automatically changes the case of selected text, e.g. `kConstantName` to 576 automatically changes the case of selected text, e.g. `kConstantName` to
577 `CONSTANT_NAME` 577 `CONSTANT_NAME`
578 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) - 578 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) -
579 Inserts incremental number sequences with multi-select 579 Inserts incremental number sequences with multi-select
580 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps 580 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps
581 a comment block to 80 columns with `Alt + Q` (was used to write this 581 a comment block to 80 columns with `Alt + Q` (was used to write this
582 document! ;-) 582 document! ;-)
583 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files 583 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files
584 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences 584 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698