sublimetext3

Can't open sublime in Bash on Ubuntu on WIndows

别来无恙 提交于 2020-07-16 06:15:14
问题 I would like to be able to open the sublime text editor from the command line from Bash on Ubuntu on Windows, but each time I attempt to run the command 'subl' I get hit with -bash: C:/Program Files/Sublime Text 3/sublime_text.exe: No such file or directory This is definitely the right directory, but I have no clue as to why this isn't working. Any tips? 回答1: Run notepad as administrator. Copy & paste this two line of code below: #!/bin/bash "$(dirname "$0")/subl.exe" "$@" Save it as subl.txt

Java Build in Sublime 3

﹥>﹥吖頭↗ 提交于 2020-07-08 00:38:42
问题 I'm trying to set up a build so that I can compile and run Java in sublime 3. My build system isn't working. "cmd": "java ${file_name} && java ${file_base_name}", "file_regex": "^[ ]file \"(...?)\", line ([0-9]*)", "path":"C:\\ProgramData\\Oracle\\Java\\javapath\\java.exe", "selector": "source.java", "shell":true I have this build saved to my packages and it appears in the build menu, but when I try and run it, it says that there is no build working. 回答1: Please read the build system

List files that are currently opened in Sublime 3

这一生的挚爱 提交于 2020-06-29 04:09:45
问题 I would like to programmatically access names of the files that are currently opened or name of a single file that is in an active tab through the unix terminal . For the sake of reproducibility I want to take snapshots of the files that I'm currently working with. Wanted result would be: /home/user/foo.txt /home/user/bar.sh /home/user/foobar.R Is there a package or shell workaround to do this? 来源: https://stackoverflow.com/questions/62344126/list-files-that-are-currently-opened-in-sublime-3

List files that are currently opened in Sublime 3

戏子无情 提交于 2020-06-29 04:09:22
问题 I would like to programmatically access names of the files that are currently opened or name of a single file that is in an active tab through the unix terminal . For the sake of reproducibility I want to take snapshots of the files that I'm currently working with. Wanted result would be: /home/user/foo.txt /home/user/bar.sh /home/user/foobar.R Is there a package or shell workaround to do this? 来源: https://stackoverflow.com/questions/62344126/list-files-that-are-currently-opened-in-sublime-3

Resetting font size shortcut for Sublime Text 3

耗尽温柔 提交于 2020-06-08 04:55:59
问题 I love working with Sublime Text, but one of its features annoys me sometimes which is "the accidental zoom in" . Whenever that happens it breaks the momentum and I have to change it back to where it was and is kind of annoying. I searched for a shortcut which can reset the size back to normal but each one of them involved creating a python file and it does not work for me for some reason. What would made my life much easier that if I could just change something in Preference.sublime-settings

how to Fix “Permission denied collect2.exe: error: ld returned 1 exit status” in Sublime Text 3 on Windows

一笑奈何 提交于 2020-05-30 03:57:02
问题 so, in sublime text 3, im program a .cpp file, and i'm compiler and there are have : C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\okera\Desktop\CRUD/main.exe: Permission denied collect2.exe: error: ld returned 1 exit status [Finished in 0.8s] 回答1: This answer is provided with reference to Sublime editor 3 on Windows 10. The answer to this is that the .exe

how to Fix “Permission denied collect2.exe: error: ld returned 1 exit status” in Sublime Text 3 on Windows

喜夏-厌秋 提交于 2020-05-30 03:56:24
问题 so, in sublime text 3, im program a .cpp file, and i'm compiler and there are have : C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\okera\Desktop\CRUD/main.exe: Permission denied collect2.exe: error: ld returned 1 exit status [Finished in 0.8s] 回答1: This answer is provided with reference to Sublime editor 3 on Windows 10. The answer to this is that the .exe

Identation coverts to weird arrow while copying code from sublime to jupyter notebook

眉间皱痕 提交于 2020-05-29 16:09:31
问题 Copying this piece of code from sublime : # Texts Texts Texts Texts Texts Texts for i in range(10): #Idented Texxt print i results in below, with the line tab in jupyter-notebook. Now if i want to add to the code and do further testing in jupyter, i need to copy this weird arrow instead of hitting tab (else, it shows indentation error). Is there some simple way to change? I can imagine I am missing something really simple and this might not be a problem at all. I tried looking but found no

tput: No value for $TERM and no -T specified in Sublime Text 3

喜夏-厌秋 提交于 2020-05-25 06:58:12
问题 When I build anything in Sublime Text 3 (regardless of language), I get the following lines at the beginning of any console output: tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified I have no idea what shell settings ST3 is using or

tput: No value for $TERM and no -T specified in Sublime Text 3

孤人 提交于 2020-05-25 06:57:06
问题 When I build anything in Sublime Text 3 (regardless of language), I get the following lines at the beginning of any console output: tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified I have no idea what shell settings ST3 is using or