In Sublime Text (3), I can select the dictionary to use for spell checking. However, this setting seems to be global rather than on a per-file basis. This is annoying when I'm working on multiple files that use different languages. How can I achieve that Sublime Text remembers what dictionary to use for a file?
Related Questions in SUBLIMETEXT3
- Sublime Text causing computer to crash (mouse being frozen and keys not being logged) due to fork bomb
- Sublime mysteriously stops indexing
- Commenting current line with shorcut CRTL+/ instead of block commenting
- How to show python docstring for installed libraries in sublime text
- Is there a way to make sublime as core.editor (git) on Mac
- Sublime don't want to find words with only a few letter match
- Sublime text snippet : how to define choices as value?
- Sublime Text has forgotten where to find openpyxl and I can't figure out how to teach it
- Sublime - PyCodeStyle - Line Length Property
- Sublime text disappearing on ubuntu subsytem for windows
- Sublime text 3 using 100% CPU on idle and with index set to false
- Live Reload sublime text 3 enable reload with delay 1500ms
- How scroll in sidebar keyboard Sublime Text
- How to modify a sublime-syntax file to include following lines in sytnax coloring?
- Can't Disable Vim Mode in Sublime Text Even After Editing Settings
Related Questions in SUBLIMETEXT
- Need 10 seconds to execute "Hello World"
- Why does the .exe file become locked after compiling?
- Move Sublime Text find panel
- Program runs in sublime text editor but not in terminal
- sublime text editor setup problem for c++ language
- Sublime Text is unable to run Python code
- Secure channel error when installing packeges in Sublime Text
- treating as linker script
- Debugging Ajax/XmlHttpRequests using Xdebug on Sublime
- Sublime don't want to find words with only a few letter match
- How Can I Fix Sublime Text CSS Style italic to Normal?
- How can I use typewriter mode in sublime text4?
- What command to use to send code to R console through AppleScript?
- Sublime Text 4: How to highlight C++ class/struct names and typedef, using and #define aliases?
- How scroll in sidebar keyboard Sublime Text
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Usually it is needed to set settings based on the syntax of the file (one dictonary for javascript files, another for css files, etc.). You can achieve this goal easily using syntax specific settings. But there are also times where you need file-specific settings (files with the same syntax with different settings values). I give you example solutions for both cases.
File-specific way
In order to set view-specific settings (similar to file-specific) you can write a plugin. This simple example shows an input panel in which you can set the desired dictionary for the opened file.
Save it as example.py inside Packages>User. Then add a key-binding and trigger it when you're focused in the desired view:
Note that this is view-specific, so if you close sublime and then re-open it the setting is restored, but if you close the file tab the setting is lost, so if you open the file in the future you'll have to set the setting again. To add a real file-specific setting you need a more complex plugin that extends EventListener and reads the files names in order to set the syntax.
Syntax-specific way
In addition to default settings and user settings you can use syntax speific settings.
Lets say you want to set the dictonary for javascript files, to add the required syntax specific settings open a javascript source file, then go to menu
Preferences>Settings-more>Syntax-specific-user, and in the file opened set the settings:Finally save it and now your javascript files are using the specified dictonary. Repeat the proccess for other file types.
Note that this is not file-specific but syntax-specific, so if you really need different dictionaries for different javascript files (for example) you'll need to use the other way.