# Sublime Text 3: Worth a look!

**URL:** <https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142>\
**Category:** Tooling\
**Created:** [November 4, 2018, 6:04pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142 "2018-11-04T18:04:06Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 12, 2019, 4:02pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/61 "2019-11-12T16:02:52Z")

</div>

It sounds we should make a proper Sublime Text plugin for Julia. Not sure if I have time to have a crack. Never done a Sublime Plugin before.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 12, 2019, 4:23pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/62 "2019-11-12T16:23:25Z")

</div>

Could you explain what you have in mind with a “plug-in”? What should it provide that is currently (in your opinion) missing?

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 12, 2019, 4:30pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/63 "2019-11-12T16:30:49Z")

</div>

Well. For a first I can just install it with package controller. Second, I like the @edit macro in Juno that takes me to the code in question.

Clicking on the code address in an error message takes me to the code.

A dataframes viewer.  
The set up instructions is quite long and a plugin can automate it.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 12, 2019, 4:31pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/64 "2019-11-12T16:31:54Z")

</div>

Pretty Tables didn’t used to support large tables? It needs the whole table to be loaded to RAM? Instead of fetching the just columns and rows it is viewing right?

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [November 12, 2019, 6:21pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/65 "2019-11-12T18:21:16Z")

</div>

Well, PrettyTables.jl prints tables (matrices, vectors, DataFrames, and anything that complies with Tables.jl API). Usually, all those entities are loaded into RAM. However, you can use something that fetch on demand, if it complies with Tables.jl, it will work. Notice that, to print a table (text mode), I really need to have access to all data that will be printed before printing. Otherwise it will be impossible to automatically compute the column size for example.

---

<div class="post-metadata">

**Author:** ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Post date:** [November 12, 2019, 7:40pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/66 "2019-11-12T19:40:40Z")

</div>

Thanks for the info. I use VS Code but I’m far from enamored with it and I’d love to find an IDE that I actually like 😉 I think I’ll give this a shot.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 12, 2019, 8:10pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/67 "2019-11-12T20:10:48Z")

</div>

Let us know how it went. If something is not up to snuff, perhaps we can fix it.

---

<div class="post-metadata">

**Author:** ![dawbarton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dawbarton/32/215461_2.png) [@dawbarton](https://discourse.julialang.org/u/dawbarton)\
**Post date:** [November 12, 2019, 11:15pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/68 "2019-11-12T23:15:05Z")

</div>

You can install it directly from the package manager: see [Julia - Packages - Package Control](https://packagecontrol.io/packages/Julia)

The `@edit` macro also works with Sublime Text (you might need to set your JULIA\_EDITOR environment variable to subl).

Unfortunately I don’t know how to get the clicking on a code address to work though.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 12, 2019, 11:39pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/69 "2019-11-12T23:39:26Z")

</div>

That’s syntax only and doesn’t run Julia on control enter right?

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 12, 2019, 11:51pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/70 "2019-11-12T23:51:09Z")

</div>

Use TableView.jl.

I have an empty git repository to make the `View` feature work more seamlessly in the browser but it’s stalled b/c grad school. The instructions in the readme of TableView.jl should be enough to write a tiny function that makes viewing tables really easy without Juno.

---

<div class="post-metadata">

**Author:** ![Sijun](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Post date:** [November 12, 2019, 11:52pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/71 "2019-11-12T23:52:58Z")

</div>

The link seems broken.🙁

edit:  
This is ok to reach:  
[https://github.com/PetrKryslUCSD/HowToUseJuliaWithSublimeText3](https://github.com/PetrKryslUCSD/HowToUseJuliaWithSublimeText3)

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 13, 2019, 6:15am UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/72 "2019-11-13T06:15:19Z")

</div>

Yes, sorry. The link needs to be changed but for some reason I cannot edit the post anymore. The correct link is [https://github.com/PetrKryslUCSD/HowToUseJuliaWithSublimeText3](https://github.com/PetrKryslUCSD/HowToUseJuliaWithSublimeText3)

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 13, 2019, 6:17am UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/73 "2019-11-13T06:17:05Z")

</div>

Try the package “Open URL”. When an error is displayed, it shows the file and the line. Place the cursor on the line and pres ctrl+alt+u.

---

<div class="post-metadata">

**Author:** ![dawbarton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dawbarton/32/215461_2.png) [@dawbarton](https://discourse.julialang.org/u/dawbarton)\
**Post date:** [November 13, 2019, 9:35am UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/74 "2019-11-13T09:35:54Z")

</div>

> [@xiaodai](#):
>
> That’s syntax only and doesn’t run Julia on control enter right?

I’m not quite sure what you mean; ctrl-enter sends the code to Julia, so it works in that sense.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 13, 2019, 12:40pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/75 "2019-11-13T12:40:57Z")

</div>

> [@dawbarton](#):
>
> `@edit` macro also works with Sublime Text (you might need to set your JULIA\_EDITOR

Nice!!

> [@dawbarton](#):
>
> ctrl-enter sends the code to Julia

I thought you need terminus or else it will not sit inside Sublime?

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 13, 2019, 12:44pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/76 "2019-11-13T12:44:48Z")

</div>

> [@dawbarton](#):
>
> you might need to set your JULIA\_EDITOR environment variable to subl

This doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![dawbarton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dawbarton/32/215461_2.png) [@dawbarton](https://discourse.julialang.org/u/dawbarton)\
**Post date:** [November 13, 2019, 1:28pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/77 "2019-11-13T13:28:57Z")

</div>

> [@xiaodai](#):
>
> I thought you need terminus or else it will not sit inside Sublime?

The SendCode plugin makes Ctrl-Enter work with a number of different terminals, embedded within Sublime or not. Personally I prefer not embedded but that’s just me. You can see my set ups (both Windows and Linux) described in [this issue](https://github.com/PetrKryslUCSD/HowToUseJuliaWithSublimeText3/issues/1#issuecomment-530369368).

> [@xiaodai](#):
>
> > you might need to set your JULIA\_EDITOR environment variable to subl
> 
> This doesn’t seem to work.

Using `ENV["JULIA_EDITOR"] = "subl"` works on Linux for me but on Windows I need

```julia
ENV["JULIA_EDITOR"] = "C:\\\\Program\\ Files\\\\Sublime\\ Text\\ 3\\\\subl.exe"

```

with a horrible number of slashes to escape everything repeatedly…

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 13, 2019, 1:37pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/78 "2019-11-13T13:37:51Z")

</div>

Windows works the same as Linux, I just set the path to the folder containing sublime\_text.exe and it’s sublime\_text.exe not subl on Windows

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 13, 2019, 1:43pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/79 "2019-11-13T13:43:47Z")

</div>

Actually @dawbarton was right, `subl.exe` is also there. (That is what I run myself.)

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 13, 2019, 1:49pm UTC](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142/80 "2019-11-13T13:49:43Z")

</div>

This works for me

```julia
ENV["JULIA_EDITOR"] = "c:/users/pk/Documents/SublimeTextPortableX64/subl.exe" 

```

because I run my `subl` from the git bash.

[Previous page](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142.md?page=3)

[Next page](https://discourse.julialang.org/t/sublime-text-3-worth-a-look/17142.md?page=5)
